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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

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