I would like to use the JIRA API to progress the job status. I cannot find a definitive list of all transition IDs. I understand a request using e.g. /rest/api/2/issue/MY-REF-ID/transitions will return the available transition for that job, but what I am after is a complete list of all possible transition IDs. Many thanks.
There isn't one. The question is quite difficult, because "a list of all transition ids" could easily look like 10010, 10020, 10020, 10020, 10020, 10022, 10024, 10030, 10034, 10035, 10035, 10035 and so-on. They are only unique within the workflow, AND they can be shared.
Fetching a transition without the context of the issue and that issue's status is pretty much useless - you can't actually do anything useful with it.
Thank you for your quick response.
It sounds like I first need to find out what transitions are possible, and then select the correct id from those available.
In my case, I need to progress a ticket to "Awaiting Test" (assuming that is an option). Do I need to search the response for "name" : "Awaiting Test", and extract the id value relating to it?
You can see a list of all of the transition IDs and other details about the status if you go to:
The ID that you're looking for is the one in the main section and not the one in the StatusCategory section. You'll see a list of all of the statuses that are available on your instance of Jira.
Over REST, the response to a "get issue" can include all available transitions for that issue, including ID and name
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs