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

Need assistance with JQL

Mark Saluta May 9, 2022

Trying to come up with the correct JQL query for all bugs that don't have "Triaged" as one of their labels, which should include bugs who have no labels at all. 

I have tried:

type = Bug AND labels != "Triaged"

type = Bug and labels not in (Triaged)

 

 

1 answer

1 accepted

0 votes
Answer accepted
Holger Rösch May 9, 2022

Hi Mark,

type = BUG AND (labels != Triaged OR labels is Empty)

should do the trick

Mark Saluta May 9, 2022

There could potentially be other labels like customer names etc. 

Holger Rösch May 9, 2022

That would return you all Bugs which have 

1. any label but "Triaged" or

2. no label at all

Isn't that what you wanted?

If you had a label "Mark" (and not Triaged in the same ticket) it would return the ticket.

If you want to exclude multiple labels:

type = Bug AND (labels not in (Triaged, label2, label 3) OR labels is Empty)

Hope that explanation helps

Mark Saluta May 9, 2022

That did the trick thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events