Is there is a list of all available transition IDs

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.

2 answers

This widget could not be displayed.

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?

That's correct, yes. 

You can't trigger transitions that are not valid for the issue, so the list isn't a lot of use, and it's best to ask the system what is valid, and parse it for the one you're looking for!

This widget could not be displayed.

You can see a list of all of the transition IDs and other details about the status if you go to:

http://your-site-here/rest/api/latest/status/

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.

Example output:

{

}

That's not the transition id, it's the status id.

Hi @Nicany idea where to find the transition id?

Over REST, the response to a "get issue" can include all available transitions for that issue, including ID and name

See https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-getIssue

John Le I'm New Here Jul 18, 2018

Open your workflows in text you can find the transition id's.

@Nic Brough [Adaptavist] Thanks for the info, exactly what I was looking for.

This didn't work. Apparently the transition IDs are not available.  Here's the workflow image from my jira instance in text . IDs are not shown on the image.JiraProjectWorkflow.JPG

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

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...

200 views 1 3
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you