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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,414,272
Community Members
 
Community Events
170
Community Groups

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

Edited

test

1 answer

1 accepted

2 votes
Answer accepted
Daniel Eads Atlassian Team Jul 08, 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

Thanks alot @Daniel Eads  ...

 

Really appreciate this.

 

Regards

Sri

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

Atlassian Community Events