Forums

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

How do I filter out backlog items with certain labels?

Solace Sonder
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!
June 23, 2022

I have a bunch of tickets in my backlog with the label "airbrake". I want to filter those out with a custom filter. I tried looking this up on communities and used the exact queries recommended (just replacing my project name and label name). 

I've tried a bunch of variations of the following queries. When I write the queries, I use the autocomplete from Jira for each part. Instead, these filters remove all issues from my backlog, even items not labeled with airbrake. 

project = SolaceProject AND labels != airbrake

project = SolaceProject AND labels != "airbrake"

project = SolaceProject AND labels not in ('airbrake')

Etc.

What am I doing wrong? Thank you!

2 answers

2 accepted

1 vote
Answer accepted
Marcin Wiktor
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.
June 23, 2022

Try this:

project = SolaceProject AND (labels not in ('airbrake') or labels IS EMPTY)

 

It seems not logical at the first sight but you have to let this JQL to include issues with empty labels

Solace Sonder
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!
June 27, 2022

Thank you, this worked!

Like John Funk likes this
1 vote
Answer accepted
John Funk
Community Champion
June 23, 2022

Hi Solace  - Welcome to the Atlassian Community!

Try using this:

project = SolaceProject AND (labels != airbrake or labels is empty)

Suggest an answer

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

Atlassian Community Events