It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,097 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you