Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Labels Filter "NOT IN" is not working.

Adeel Sarwar 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

4 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 March 27, 2023

Thank you , that gives right results

Like Nic Brough -Adaptavist- likes this
0 votes
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events