Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,333
Community Members
 
Community Events
185
Community Groups

Choosing a specific transition when I have multiple going to the same status

Edited

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.

image.png
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.image.png

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.image.png

 

 

 

 

2 answers

1 vote
Callum Carlile _Automation Consultants_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 26, 2022 • edited

Hi @Steven Rhodes 

Under where you have set the Done status, there is an option to "+ add regex to distinguish between multiple transitions to the same status ".

trans1.pngtrans2.png

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. 

Like Jenny Severin likes this

I am having the same problem.

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.

Hi Guys,

in 

.*resolv*.

 You Have to type a specific name of transition in.

@Steven Rhodes in Your issue You have to type:

.*Done*.

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?

0 votes
Jeffrey Bistrong
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 24, 2023

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

Monosnap View workflow — DB_CR Workflow v1.2 - JIRA 2023-02-24 13-37-23.pngMonosnap Automation - Jira 2023-02-24 13-35-46.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events