Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Dec 06, 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.

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 Dec 07, 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

688 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you