Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get transition ID to update status in the script using Rest API.

sriharsha m July 6, 2021

test

1 answer

1 accepted

2 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 8, 2021

Hi @sriharsha m, welcome to the Community!

To transition an issue between statuses in Jira through the API, you would make a POST request to the URL path like this (substituting in your site and the issue key):

https://{yoursite}.atlassian.net/rest/api/3/issue/{issueIdOrKey}/transitions

The transition ID you want to use goes in the body of the request, as an object called transition with a key of id. For example:

  "transition": { "id": "5" } 

A full sample request is available in the REST API documentation showing how to call a transition .

 

How do you find which transition IDs you can use? A GET request to the same URL! Here's the REST API documentation for getting the valid transitions . For clarity, that's just a GET to the same URL that you would make the POST request to for the actual update. Substitute in your site URL and issue key:

https://{yoursite}.atlassian.net/rest/api/3/issue/{issueIdOrKey}/transitions

Let me know if you need further clarification!

Cheers,
Daniel | Atlassian Community

sriharsha m July 30, 2021

Thanks alot @Daniel Eads  ...

 

Really appreciate this.

 

Regards

Sri

Ali Balbars October 4, 2022

it worked for me, thank you!

Like Daniel Eads likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events