Skip to content

Atlassian: Transition issue

Atlassian issues.doTransition: arguments, response, policy and SDK examples.

← Issues operations · Get started

Operation atlassian.dotransition

Provider route: POST /{cloudId}/rest/api/3/issue/{issueIdOrKey}/transitions. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["issues"]["doTransition"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.issues.doTransition(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.issues.do_transition(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
path.issueIdOrKeystringRequired within parent
bodyModelRequired within parentExpand Edit issue — request body — body

Referenced models: Edit issue — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$nullRoot

7 more schemas are linked from the tables above, on the schema pages.

Edit issue — request body — body
FieldTypePresenceDescription and constraints
$objectRootDetails of an issue update request.
Additional keys: allowed
fieldsobjectOptionalList of issue screen fields to update, specifying the sub-field to update and its value for each field. This field provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are required, use `update`. Fields included in here cannot be included in `update`.
Additional keys: see wildcard field
fields.*JSONAdditional keys
historyMetadataModelOptionalExpand Edit issue — request body — body history Metadata
Additional issue history details.
propertiesarrayOptionalDetails of issue properties to be add or update.
properties[]ModelEach itemExpand Edit issue — request body — body properties item
transitionModelOptionalExpand Edit issue — request body — body transition
Details of a transition. Required when performing a transition, optional when creating or editing an issue.
updateobjectOptionalA Map containing the field field name and a list of operations to perform on the issue screen field. Note that fields included in here cannot be included in `fields`.
Additional keys: see wildcard field
update.*arrayAdditional keys
update.*[]ModelEach itemExpand Edit issue — request body — body update value item

Referenced models: Edit issue — request body — body properties item, Edit issue — request body — body update value item, Edit issue — request body — body history Metadata, Edit issue — request body — body transition

Edit issue — request body — body properties item
FieldTypePresenceDescription and constraints
$objectRootAn entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
Additional keys: not allowed
keystringOptionalThe key of the property. Required on create and update.
valueJSONOptionalThe value of the property. Required on create and update.
Edit issue — request body — body update value item
FieldTypePresenceDescription and constraints
$objectRootDetails of an operation to perform on a field.
Additional keys: not allowed
addJSONOptionalThe value to add to the field.
copyJSONOptionalThe field value to copy from another issue.
editJSONOptionalThe value to edit in the field.
removeJSONOptionalThe value to removed from the field.
setJSONOptionalThe value to set in the field.
Edit issue — request body — body history Metadata
FieldTypePresenceDescription and constraints
$objectRootDetails of issue history metadata.
Additional keys: allowed
activityDescriptionstringOptionalThe activity described in the history record.
activityDescriptionKeystringOptionalThe key of the activity described in the history record.
actorModelOptionalExpand Edit issue — request body — body history Metadata actor
Details of the user whose action created the history record.
causeModelOptionalExpand Edit issue — request body — body history Metadata actor
Details of the cause that triggered the creation the history record.
descriptionstringOptionalThe description of the history record.
descriptionKeystringOptionalThe description key of the history record.
emailDescriptionstringOptionalThe description of the email address associated the history record.
emailDescriptionKeystringOptionalThe description key of the email address associated the history record.
extraDataobjectOptionalAdditional arbitrary information about the history record.
Additional keys: see wildcard field
extraData.*stringAdditional keys
generatorModelOptionalExpand Edit issue — request body — body history Metadata actor
Details of the system that generated the history record.
typestringOptionalThe type of the history record.

Referenced models: Edit issue — request body — body history Metadata actor

Edit issue — request body — body transition
FieldTypePresenceDescription and constraints
$objectRootDetails of an issue transition.
Additional keys: allowed
expandstringOptionalExpand options that include additional transition details in the response.
Read only: true
fieldsobjectOptionalDetails of the fields associated with the issue transition screen. Use this information to populate `fields` and `update` in a transition request.
Read only: true
Additional keys: see wildcard field
fields.*ModelAdditional keysExpand Edit issue — request body — body transition fields value
hasScreenbooleanOptionalWhether there is a screen associated with the issue transition.
Read only: true
idstringOptionalThe ID of the issue transition. Required when specifying a transition to undertake.
isAvailablebooleanOptionalWhether the transition is available to be performed.
Read only: true
isConditionalbooleanOptionalWhether the issue has to meet criteria before the issue transition is applied.
Read only: true
isGlobalbooleanOptionalWhether the issue transition is global, that is, the transition is applied to issues regardless of their status.
Read only: true
isInitialbooleanOptionalWhether this is the initial issue transition for the workflow.
Read only: true
loopedbooleanOptional
namestringOptionalThe name of the issue transition.
Read only: true
toModelOptionalExpand Edit issue — request body — body transition to
Details of the issue status after the transition.
Read only: true

Referenced models: Edit issue — request body — body transition fields value, Edit issue — request body — body transition to

Edit issue — request body — body history Metadata actor
FieldTypePresenceDescription and constraints
$objectRootDetails of user or system associated with a issue history metadata item.
Additional keys: allowed
avatarUrlstringOptionalThe URL to an avatar for the user or system associated with a history record.
displayNamestringOptionalThe display name of the user or system associated with a history record.
displayNameKeystringOptionalThe key of the display name of the user or system associated with a history record.
idstringOptionalThe ID of the user or system associated with a history record.
typestringOptionalThe type of the user or system associated with a history record.
urlstringOptionalThe URL of the user or system associated with a history record.
Edit issue — request body — body transition fields value
FieldTypePresenceDescription and constraints
$objectRootThe metadata describing an issue field.
Additional keys: not allowed
allowedValuesarrayOptionalThe list of values allowed in the field.
Read only: true
allowedValues[]JSONEach itemRead only: true
autoCompleteUrlstringOptionalThe URL that can be used to automatically complete the field.
Read only: true
configurationobjectOptionalThe configuration properties.
Read only: true
Additional keys: see wildcard field
configuration.*JSONAdditional keysRead only: true
defaultValueJSONOptionalThe default value of the field.
Read only: true
hasDefaultValuebooleanOptionalWhether the field has a default value.
Read only: true
keystringRequired within parentThe key of the field.
Read only: true
namestringRequired within parentThe name of the field.
Read only: true
operationsarrayRequired within parentThe list of operations that can be performed on the field.
Read only: true
operations[]stringEach itemRead only: true
requiredbooleanRequired within parentWhether the field is required.
Read only: true
schemaModelRequired within parentExpand Edit issue — request body — body transition fields value schema
The data type of the field.
Read only: true

Referenced models: Edit issue — request body — body transition fields value schema

SDK function policy ID: atlassian.dotransition. Catalog operation: dotransition. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["write:jira-work"]

No-content response statuses: [204]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.