Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

At least 2 labels

Marcel Gunst August 9, 2021

Hello Community,
I need help.
I want to run an output when at least two labels from a given list of labels are active on the ticket.
How do I get this rule mapped into an automation?

5 answers

1 vote
Leo
Community Champion
August 9, 2021

Hi @Marcel Gunst,

how about framing query as below?

labels in [1st list] AND labels in [2nd list]
0 votes
Marcel Gunst August 10, 2021

Thanks, but that doesn't help. I can't get it to query individual labels within the JQL. It also finds operations where only 1 label is included.
I could solve the problem by using the JIRA automatism. There you can define certain triggers. Is it possible to execute several triggers in a loop and then execute a certain action when one of the triggers fires?

0 votes
Liam Green
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.
August 9, 2021

The only way that would work would be if you defined each of the options, e.g.

Label1 and Label2 OR Label1 and Label3 OR Label1 and Label4, etc.

Obviously that would be quite long-winded as there are a lot of variations on that.

What do you want the automation to do if the labels are there?  We could possibly explore other ways to do it

0 votes
Marcel Gunst August 9, 2021

Thank you for the answers. 

I don't think that will work. In my query there are several combinations of certain labels that serve as triggers.
Otherwise I would have to create each label combination manually and that will take a lot of time.
The simplest thing would be to define four labels, for example. If there are two of these labels on the ticket (no matter what combinations), the condition is met.

Would this be possible?

Leo
Community Champion
August 9, 2021

@Marcel Gunst, you need to frame 4 combinations in that case

(labels = A AND labels in [B,c,d]) or (labels = B AND labels in [A,c,d]) or (labels = c AND labels in [A,b,d]) or (labels = d AND labels in [A,c,b]) 

Regards,

Leo 

Like Liam Green likes this
0 votes
Liam Green
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.
August 9, 2021

Hi @Marcel Gunst 

Welcome to the Community!

This would be difficult to achieve if you have a lot of potential labels, but the below is the basic rule you would need

image.png

Hope that helps,

Liam

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events