How can I exclude certain labels when searching?

Nariman Riahi June 4, 2012

I like to exclude 2 lablels (let's say "red and "blue" label)

How do I construct the JQL? I seam to not be able to get the right result.

I write:

...and labels not in (red) or labels not in (blue)

is this correct?

1 answer

1 accepted

2 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
June 4, 2012

It is a bit more easier.

labels not in ("red","blue")

Nariman Riahi June 4, 2012

Thanks a lot.

How about if I want to find tickets with Red or Blue label?

Jobin Kuruvilla [Adaptavist]
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.
June 4, 2012

Just remove the not

labels in ("red","blue")

Suggest an answer

Log in or Sign up to answer