I am using rest api to update the status of a jira issue, for ex: update the status to 'Resolved' irrespective of what it's current status is. In the workflow, I have various transitions from various states to the 'Resolved' status. Each of those transitions have their own transition 'id's.
I have seen the rest api to update the status by passing a transition 'id'. But I have multiple transition id's here and not sure to pick which one as I am not sure what the current status is.
I can find the current status and all, but is there a direct way to update the status to a particular one irrespective of what the current status is?
No. The only way to change the status of an issue is to move it through a workflow transition that takes it to the new status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.