Hi,
the external system knows the target status but not the Transition Id. For example, the external system knows that the Issue status of FWT-1 must become “Closed”. For the external system the goal is to update the issue status without knowing the transition ID. What REST API calls should the external system perform?
Thanks
You should use the REST API calls that ask what transitions are availble, the metadata call should include that.
Thanks, I know BUT how It is possible to Get the Transition ID starting by the Target Status?
The external system would like to get the Transition ID directly and NOT all possible transitions. The external system cannot insert logic to process the response with all possible transitions. Is there a way to do It? A REST API Call that returns the transition ID querying by target status.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are asking the question in the wrong place.
You can ask Jira to give you a list of available transitions for the current issue, or with a bit more processing, you could read the workflow and parse that for the list of transitions out of a status.
But Jira can't tell you which transition to run. It can't know - you need to tell it.
You need to decide which one it is (then you can pull the id out of the list of available ones given by the metadata call)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, when you say "you could read the workflow and parse that for the list of transitions out of a status" what do you mean? What is the REST API call?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That means reading all the workflows, identifying which one you are using and parsing the xml to find the id of the transition. api/latest/workflow is the REST endpoint for working with workflow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, Is it possible to print also the added property into the response of get-transitions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.