Can I change the status via rest api ?

Rajeev Jain December 17, 2015

I am using Transition property in my rest call, but it is not changing status in jira.

2 answers

0 votes
Rajeev Jain December 21, 2015

Thanks Rodrigo, 

I found solution we have to use different ApI call to make it successful.

First query issue transitions using key and find all possible status like given below

End Point : Your JIRA Site Link/rest/api/2/issue/Issue Key/transitions

Method : Get

this will return you all possible transition setup in your JIRA account.

Then use use 'POST' method to change the status like given below

End Point : Your JIRA Site Link/rest/api/2/issue/Issue Key/transitions

Method : POST

Body : 

{
"transition": {
"name": "Done"
}
}

Thanks

0 votes
Rodrigo Silva
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 17, 2015

Hey Rajeev, I believe you might find a good example here:

https://answers.atlassian.com/questions/107630/jira-how-to-change-issue-status-via-rest

 

I hope that helps!

Cheers,

Rodrigo SIlva

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events