JQL - Filter to exclude specific labels

emese sonnenschein
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!
May 9, 2024

Hi,
I have to use 2 labels, label x and label z, for specific reasons.
But I need to create a filter to get all issues with label x but not with label z.

Is it possible somehow? I have tried IS NOT in vain.

Any suggestion?

1 answer

1 accepted

1 vote
Answer accepted
Dexter de Vera
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2024

Hi @emese sonnenschein ,

Welcome to Atlassian Community,

In Jira JQL, you cant filter only specific Label without indicating the labels that needs to exclude.

But base on your case you want to search all issues with label x only excluding label z.

This JQL is the closest to it without plugins.

labels = "label x" AND labels NOT IN ("label z")

You can add additional label in NOT IN to exclude other labels.

 

Hope it helps!

emese sonnenschein
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!
May 10, 2024

Thank you for your reply @Dexter de Vera 
I'll try that out.

Suggest an answer

Log in or Sign up to answer