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,298,125
Community Members
 
Community Events
165
Community Groups

how to change jira status by transition with REST API?

pillow I'm New Here May 19, 2022

i tried to change status as a field,but not work,and i see we need to change the status by transition.

 

but i do't understand the schema .

for example,i want to transition my issue from to do to doing,how should i send the params?

1 answer

0 votes

Hi @pillow 
Welcome to the Atlassian Community.

Here's an example based on https://docs.atlassian.com/software/jira/docs/api/REST/8.20.1/#issue-doTransition .

 

See possible transitions:
GET <Jira-BaseURL>/rest/api/2/issue/<Issue-Key>/transitions


Transition an issue to a selected Workflow status (transition is made by ID and not name):
POST <Jira-BaseURL>/rest/api/2/issue/<Issue-Key>/transitions
{
   "transition": {
     "id": "21"
   }
}

 

 

Kind regards,
Thiago Masutti

pillow I'm New Here May 19, 2022

i have read the doc,but i can't understand the schema.

what's the role of the parameters? what's the range of update,just comment?

 

and i can't find the transition id list. is it the actionId of every transition which declare in workflow?

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you