Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get list of transitions possible for an issue

Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types. Fields will only be returned if expand=transitions.fields. The fields in the metadata correspond to the fields in the transition screen for that transition. Fields not in the screen will not be in the metadata.

GET/api/2/issue/{issueIdOrKey}/transitions
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
issueIdOrKeystringrequired

Issue id or key

Query parameters
transitionIdstring

Transition id

Responses
200

Returns a response containing a Map of TransitionFieldBeans for each transition possible by the current user.

transitionsTransitionBean[]
Show properties
Array of TransitionBean
descriptionstring
fieldsobject
idstring
namestring
opsbarSequenceinteger<int32>
toStatusJsonBean
Show properties
descriptionstring
iconUrlstring
idstring
namestring
selfstring
statusCategoryStatusCategoryJsonBean
Show properties
colorNamestring
idinteger<int64>
keystring
namestring
selfstring
statusColorstring
404

Returned if the issue does not exist or the user does not have permission to view it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/issue/string/transitions' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "transitions": [
    {
      "description": "Close the issue.",
      "fields": {
        "property1": {
          "allowedValues": [
            "red",
            "blue",
            "default value"
          ],
          "autoCompleteUrl": "/rest/api/2/customFieldOption/10000",
          "defaultValue": {},
          "fieldId": "customfield_10000",
          "hasDefaultValue": true,
          "name": "My Multi Select",
          "operations": [
            "set",
            "add"
          ],
          "required": true,
          "schema": {}
        },
        "property2": {
          "allowedValues": [
            "red",
            "blue",
            "default value"
          ],
          "autoCompleteUrl": "/rest/api/2/customFieldOption/10000",
          "defaultValue": {},
          "fieldId": "customfield_10000",
          "hasDefaultValue": true,
          "name": "My Multi Select",
          "operations": [
            "set",
            "add"
          ],
          "required": true,
          "schema": {}
        }
      },
      "id": "2",
      "name": "Close Issue",
      "opsbarSequence": 10,
      "to": {
        "description": "The issue is currently being worked on.",
        "iconUrl": "http://localhost:8090/jira/images/icons/progress.gif",
        "id": "10000",
        "name": "In Progress",
        "self": "http://localhost:8090/jira/rest/api/2.0/status/10000",
        "statusCategory": {
          "colorName": "blue-gray",
          "id": 1,
          "key": "new",
          "name": "To Do",
          "self": "http://localhost:8090/jira/rest/api/2.0/statuscategory/1"
        },
        "statusColor": "green"
      }
    }
  ]
}

Was this page helpful?