change issue transition with api

changjinsheng December 29, 2021

"

/rest/api/3/issue/%s/transitions

"

When i used above api to change the issue's transition, as if nothing had happened

Could anyone tell me what's wrong?

my params is "{\"transition\":{\"id\":\"2\"}}"

 

2 answers

0 votes
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 29, 2021

Hi @changjinsheng 

You need to pass the relevant transition id for that particular issue based on its current status.

You can get the valid transitions using the same end point but GET method. I made a video exactly on this topic explaining how to get transitions and make a transition.

I hope it helps.

Ravi

0 votes
KAGITHALA BABU ANVESH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 29, 2021

Hello @changjinsheng

 

I didn't tried before on Transition of issues. with REST API's.

Can you please check the below link 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-transitions-post 

It may helpful.

Thanks,

Suggest an answer

Log in or Sign up to answer