The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

sriharsha m
July 6, 2021

test

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2022

it worked for me, thank you!

Like • Daniel Eads likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events