Forums

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

When I try to create a query for issues w/0 the label "v8_testing_needed"no results are shown, why?

Heather Driscoll May 9, 2025

I created a query that displays issues within the sprint that does not contain the label "v8_testing_needed." When I do this, all of my sprint items are gone and nothing is displayed. However, I do have one work item with that label so all of the issues should be displayed minus that one. I did the filter "labels!= v8_testing_needed. What am I missing?

2 answers

0 votes
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.
May 12, 2025

Hi Dear @Heather Driscoll
Try the following, it should be worked.

"labels!= v8_testing_needed or labels is Empty

Heather Driscoll May 12, 2025

Unfortunately, I already tried this and it does show in the query the ones without this label. However, if there are items in the query that also have no label at all, it removes them from populating as well. 

 

 

Like Gor Greyan likes this
0 votes
Trudy Claspill
Community Champion
May 9, 2025

Hello @Heather Driscoll 

Do the other issues have other labels? Do any of the other issues have no labels at all?

Heather Driscoll May 9, 2025

Hi Trudy,

 

3 of the issues have no labels and 2 issues have the label "v8_testing_needed" as well as another label attached to it. 

 

Trudy Claspill
Community Champion
May 9, 2025

To get the issues that have no labels at all you would need to add this to your query:

OR Labels is empty

 

You said that you have two issues that have the specified label along with other labels. You query will exclude those issues because they have the specified label.

If you want to exclude only the issues where the specified label is the only label on the issue, while including issues that have no labels or have the specified label plus other labels, I don't know the solution for that.

 

You might try doing an internet search to see if you can find posts that already exist on this topic. I did a google search for jira jql exclude issues that have only 1 specified label and a number of results came up.

Heather Driscoll May 12, 2025

okay thank you. That is exactly what I am trying to do so I will do an internet search. Thanks

Heather Driscoll May 12, 2025

This is what I tried and nothing populates. jira issue.png

Trudy Claspill
Community Champion
May 12, 2025

Hello @Heather Driscoll 

Your syntax is incorrect.

I think if you tried to just execute the labels portion of your original filter you would find it would not return any results:

labels != "v8_testing_needed" and labels IS EMPTY

Try this

sprint="v7.4.16" and (status = "QA to Do" or status = "QA in progress") and 
labels != "v8_testing_needed" OR labels IS EMPTY )

Put parentheses around the labels criteria and separate them with OR rather than AND.

I don't believe that is actually going to get you the results that you want, ultimately. I don't think the results will include issues that have the specified label plus other labels.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events