How to update Jira issue status using APIs

In my Forge application, I want to update a ticket to “Done” or “Closed”. I found the API endpoint /rest/api/3/issue/issue_id/transitions, which requires passing the transition ID. However, I am not sure how to dynamically retrieve the transition ID, since different projects may have different IDs for “Closed” or “Done” statuses.

Hi @ParthpuriGoswami1. The API method for fetching transitions for a given issue is Get Transitions.

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

This will return an array called transitions.

Hi,
Okay, Thanks.