How to search for multiple labels in JQL?

I'm trying to write to use JQL to search a bunch of different labels but I'm not sure if we have anything with those labels. I tried the IN(label1, label2) but if label1 doesn't exist I get an error.

So I though of using a wildcard but that doesn't work either. Do I really need to know exactly what labels I want and be sure they exist to use JQL?

2 answers

Hello Marco,

normally by using labels in(label1, label2) and label1 doesnt exist you get the result for label2.

An error is not a normal behavior of JIRA.



1 vote

What version of JIRA are you using, and what is the error?

I seem to remember that happening on a very old version of JIRA, but more recent ones tolerate non-existent labels, they just ignore them like Semi says.

Ok I reckon I'm not sure it's a label, it looks like this:Screen Shot 2017-08-14 at 9.13.58 PM.png

Oh, sorry, Semi and I were talking about the advanced search option.

The simple search will give you an error because your label data is incomplete.

i wanted to write a JSQL query which i believe it's what you call advance search?

Ah, right, that's not a label, it's a version.

Same applies though - you need to feed it a set of values that exist.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

110 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you