Hello,
I am writing a python script to transition issues through a workflow using the Transitions API. Currently in my script, I obtain my list of issues that need to be transitioned from an internal source, then I call the transitions API and pass the transition ID along with each Issue Key into a POST request to perform the desired transition.
However, currently my script has the transition ID hard-coded as I couldn't figure out a way to get the right transition using the GET transitions API. Is there a recommended practice to obtain the right transition ID?
By right transition ID - I mean I need to transition a ticket to "In Progress". I can't obtain the ID based on "In Progress" text for "In Progress" because my workflow has other statuses which have "In Progress" in their names such as "Testing In Progress" or "UAT In Progress".
Thanks!
Hello @Amir Soleimany
Once you know the transitionId, you can use the Get workflow transition properties endpoint to tell you that transition's key and name (value). This lets you know which one is which.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.