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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

74 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