Forums

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

how to change jira status by transition with REST API?

pillow
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!
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
Thiago Masutti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 19, 2022

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