JQL "not in" operator

I have a project with 654 issues. The product owner has tagged 105 of those issues with a certain keyword, with "keyword(s)" being a custom field on our local JIRA instance that accepts any space-delimited string. (Please don't ask why we don't just use the JIRA "labels" field.)

This query returns the expected 654 results:

project = "MyProj"

And this query returns the expected 105 results:

project = "MyProj" and "keyword(s)" in (MyKey)

However, I can't seem to return the inverse, which should be the 549 issues without MyKey. The query

project = "MyProj" and "keyword(s)" NOT in (MyKey)

returns 173 hits. Any ideas?

3 answers

1 accepted

You are probably missing the issues without any keywords.  

("keyword(s)" NOT in (MyKey) OR "keyword(s)" IS EMPTY)

0 votes

I have some ideas around the fuzziness around using "in" on text, but a bit more testing might be useful.

Let's say two of the common words your users have put in this field are "Cat" and "Penguin".  Could you tell us what you get for:

project = "MyProj" and "Cat" NOT in (MyKey)

project = "MyProj" and "Penguin" NOT in (MyKey)

project = "MyProj" and "Cat Penguin" NOT in (MyKey)

@Norman Abramovitz, that did the trick. Thanks.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,101 views 13 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot