Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can we update status of issue using PUT method of REST API 3 in JIRA

Varalakshmi Kora December 6, 2021

Can we update the status of the issue as well using the PUT method of REST API 3 like other fields such as summary, description, etc., in JIRA

1 answer

0 votes
Ivan Lima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 6, 2021

Hi @Varalakshmi Kora. Welcome to the Atlassian Community!

To update the status, you need to use the Transition issue. You can edit an issue using the Edit issue API. The fields that can be edited are determined using Get edit issue metadata.

Varalakshmi Kora December 6, 2021

I am not able to update state using any of fields or update. can you please give the syntax to update the state of an issue using REST API 3?

Ivan Lima
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 7, 2021

You need to call the Transition issue API to update the workflow status of an issue.

curl --request POST \
  --url 'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/transitions' \
  --user 'email@example.com:' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "transition": {
    "id": "5"
  }
}'

You can also test it using Postman. You should see a 204 no content as a response, which means your issue has been updated successfully.

Screen Shot 2021-12-07 at 12.08.24 PM.png

Reference:

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

Varalakshmi Kora December 7, 2021

ok thank you

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events