Forums

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

JIRA- How to change issue status using name and not ID via rest?

Jay Ram
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!
August 24, 2020

hi,
Currently im using a curl command with ID to change the status of an issue

curl -D- -u <USER>:<PASS> -X POST --data '{"transition":{"id":"<TRANSITION_ID>"}}' -H "Content-Type: application/json" <JIRA_URL>:<JIRA_PORT>/rest/api/latest/issue/<JIRA_ISSUE>/transitions?expand=transitions.fiel
 

 but i need to use/do transition using name like

curl -D- -u <USER>:<PASS> -X POST --data '{"transition":{"name":"inprogress"}}' -H "Content-Type: application/json" <JIRA_URL>:<JIRA_PORT>/rest/api/latest/issue/<JIRA_ISSUE>/transitions?expand=transitions.field
 

Is this possible using REST .can anyone please help?

0 answers

Suggest an answer

Log in or Sign up to answer