Forums

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

Filtering out using labels

Kaushal Kumar Singh October 10, 2025

Hi Community,

I am trying to create a filter where I want to filter out work items with label having "Engineering". With the below query I am getting 0 results, but I should be getting 5 counts.

What is going wrong here?

project = ABC
AND type IN (Feature, Initiative, "New Feature")
AND statuscategory IN ("In Progress", New)
AND labels != Engineering
ORDER BY Rank ASC

2 answers

1 accepted

3 votes
Answer accepted
Gor Greyan
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 Leaders.
October 10, 2025

Hi @Kaushal Kumar Singh

Thanks for the question.

If you want to find tickets that have the label "Engineering", in your provided JQL, you put !=, which means you exclude those ones.
I think the following one will work, if you want all tickets, with the mentioned label.

project = ABC
AND issuetype IN (Feature, Initiative, "New Feature")
AND (statusCategory = "In Progress" OR status = "New")
AND (labels IN (engineering))
ORDER BY Rank ASC

If you want tickets that don't contain "the Engineering" label, you can use this one.
project = ABC
AND issuetype IN (Feature, Initiative, "New Feature")
AND (statusCategory = "In Progress" OR status = "New")
AND (labels IS EMPTY OR labels NOT IN (engineering))
ORDER BY Rank ASC

Let me know if this works for you.

Kaushal Kumar Singh October 10, 2025

Thanks @Gor Greyan  - The second one worked as I wanted to exclude the label.

AND (labels IS EMPTY OR labels NOT IN (engineering))

 

Like Gor Greyan likes this
Gor Greyan
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 Leaders.
October 10, 2025

Dear @Kaushal Kumar Singh

Glad that it helps.

Have a nice day!

0 votes
Hari Krishna
Contributor
October 10, 2025

Hi @Kaushal Kumar Singh ,

The issue occurs because labels is a multi-value field in Jira, and using the != operator doesn’t work as expected for such fields. The condition labels != Engineering may return zero results since Jira doesn’t handle multi-select fields this way. To correctly exclude issues that have the label Engineering, you should use the NOT IN operator instead. The correct query is:

project = ABC
AND type IN (Feature, Initiative, "New Feature")
AND statusCategory IN ("In Progress", New)
AND labels NOT IN (Engineering)
ORDER BY Rank ASC


This query properly filters out issues that contain the Engineering label while including all others. If you still get no results, double-check for label spelling or case differences (e.g., engineering vs Engineering).

Kaushal Kumar Singh October 10, 2025

Tried this, but still getting 0 count.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events