The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Labels Filter "NOT IN" is not working.

Adeel Sarwar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2022

Hi

I have a filter project = SF AND issuetype = Task AND (labels not in (KDD)).

It is a simple filter where i want to see all issue types tasks where we do not have a label "KDD". If i do "IN KDD" it works fine however "NOT IN" or "!=" does not work. I have tried different iterations reading blogs but nothing is working e.g.

project = SF AND issuetype = Task AND labels not in KDD.

project = SF AND issuetype = Task AND labels != KDD.

etc.

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

7 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 22, 2022

Welcome to the Atlassian Community!

My guess is that it is working fine, but you were expecting issues with no label to appear as well.  "Not in" can only work with labels that have a value.

Try 

project = SF AND issuetype = Task AND (labels not in (KDD) or labels is empty)

akanksha jaiswal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2023

Thank you , that gives right results

Like Nic Brough -Adaptavist- likes this
0 votes
Joseph Chung Yin
Community Champion
March 22, 2022

@Adeel Sarwar -

Welcome to the community.  You just missed the following syntax in your JQL.  Give the following JQL where Label value is enclosed with " " characters.  This will work.

project = SF AND issuetype = Task AND labels not in ("KDO").

project = SF AND issuetype = Task AND labels != "KDD"

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

TAGS
AUG Leaders

Atlassian Community Events