Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,917
Community Members
 
Community Events
165
Community Groups

JQL labels not in (LabelName)

Edited

Hi,

Im trying to save a filter with a JQL of all issues thah DO NOT contain a certain label.

However, I realized it simply doesn't work.

when I search :

labels == Recorrente  

or 

labels in (Recorrente) 

It works fine.

But if I try to do the opposite, it doesn't work:

labels != Recorrente 

labels not in (Recorrente)

Any ideas about how can I workaround it?

Thanks! 

1 answer

1 accepted

1 vote
Answer accepted
Hana Kučerová Community Leader Dec 18, 2019

Hi @Jeff Santos ,

it seems to me, that the problem is, that you have forgotten to add the issues, which have no labels.

Please, try this:

labels is EMPTY OR labels not in (Recorrente)

HI @Hana Kučerová ,

It worked fine. 

I really thought that using != would make it necessary to specify that I wanted issues with empty labels.

Thank you for the help!

This isn't working for me and I have no idea why.  I've found no less than three different versions of this question and all of them provide the same answer.  I need to find issues that either have Labels empty or have a Label that is not THU.  The logic provided here, and elsewhere isn't working:

project = "Physicians Organization Service Desk" AND issuetype = Change AND status not in (Closed, Resolved) AND assignee in membersOf("Epic PB Application") AND status = "Waiting for approval" AND (labels is EMPTY or labels not in (THU))

All I get in response are issues where Labels is empty.

Hana Kučerová Community Leader Jan 19, 2022

Hi @Andy Finley ,

I don't see anything wrong with your JQL. As your JQL is complex, I would recommend you start debugging like this:

  1. try JQL: 
    labels is EMPTY or labels not in (THU)
    and see, which issues you get
  2. if these issues are correct, then add another paramater to JQL:
    project = "Physicians Organization Service Desk" AND (labels is EMPTY or labels not in (THU))
    and so on...

The results show all tasks, from all the previous sprints although I define the sprint name
"AND sprint = sprint ID"

 

Any idea why?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

224 views 9 7
Read article

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