JQL Query that excludes certain labels

I use labels to help identify which items in development have been added to our pending release notes/wiki. I use 'InWiki' to denote items that have been added to the release notes/wiki and 'NotInWiki' to denote items that we have determined should not be seen in the release notes/wiki.

 

I have a query that shows me all items in a release that contain no labels, as I was the only one using the labels system. Now that we are using labels for more purposes, my query, which uses Labels = Empty, does not work, and it doesn't seem to work if I use (Labels != InWiki OR Labels != NotInWiki). Am I using the correct operators? What's the best way to make sure that I'm pulling items excluding those labels, but including empty label fields, as most but not all of the items I want to see will not have any label?

2 answers

Try:

NOT (labels = InWiki or labels = NotOnWiki)

 

 

I'm specifically looking to exclude everything labeled as InWiki or NotInWiki. Including those labels seems to work fine; Excluding them does not.

I think I may have figured it out.

 

AND (Labels IS NULL OR Labels != InWiki AND Labels != NotInWIki)

Suggest an answer

Log in or Join to answer
Community showcase
Emilee Spencer
Published 31m ago in Marketplace Apps

Marketplace Spotlight: DeepAffects

Hello Atlassian Community! My name is Emilee, and I’m a Product Marketing Manager for the Marketplace team. Starting with this post, I'm kicking off a monthly series of Spotlights to highlight Ma...

16 views 0 2
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
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