How to search for multiple labels in JQL?

improbable-marco August 14, 2017

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

1 vote
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2017

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.

improbable-marco August 14, 2017

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2017

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.

improbable-marco August 14, 2017

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

improbable-marco August 14, 2017

Screen Shot 2017-08-14 at 9.30.49 PM.png

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 14, 2017

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.

Semi Kefi [demicon GmbH]
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 14, 2017
1 vote
Semi Kefi [demicon GmbH]
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 14, 2017

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.

/Br

Semi

Suggest an answer

Log in or Sign up to answer