You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have a workflow where I have two transitions into the Done status. One is to cancel the request and sets the resolution to cancelled (this one is available from all other statuses). The second one goes from In Progress to Done and gives you a resolution screen to set it yourself. I am trying to use automation to set the resolution for some projects using this workflow transitioning via the In Progress to Done, but when I select this in Automation for Jira, it chooses the transition that cancels the request.
How can I specify or differentiate between these two transitions? I see the transition ID of 101 for Done (and 31 for Cancel Request), but in the automation I don't know how to use the "Transition Match" feature. All the regex I have tried doesn't work.
I have tried to bypass this by using the Cancel Request transition it insists on using but I can't set the Resolution because there is only a Comment field on the transition screen (I have managed to set a generic comment though). This results in the transition to Done but means the resolution is still Cancelled.
Under where you have set the Done status, there is an option to "+ add regex to distinguish between multiple transitions to the same status ".
Here, you can enter some regex based on the individual transition's name in order for the correct transition to be used.
Either this, or you can just add a post function on the specific transition to set the Resolution, meaning you don't have to 'edit' the resolution field, nor do you have to have the resolution on the transition screen (this may be the easiest solution).
Hope this helps!
Thanks for your reply
I did mention that all the regex I have tried didnt work, and I can't find examples that would help me. I can see that in the example in the box it says
.*resolv.*
And i have tried .*done.* for example
Also there are already two transitions to Done and i'd rather not add a third that sets the resolution to Done.
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.
Hi @Jenny Severin I did in the end create a new workflow as I was unable to get the automation to recognise the regex. This was a lot more work but it works now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys,
in
.*resolv*.
You Have to type a specific name of transition in.
@Steven Rhodes in Your issue You have to type:
.*Done*.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why would it have to be .*Done*. and not Done ?
Wouldn't that match anything that had Done in it, or is ".*" and "*." Atlassian's regex delimiter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me, i just had to match the transition name exactly, i couldn't get it to work when the transition name had spaces in it, so replaced the space in the transition with an underscore, and now its working
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.