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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Reference:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.