Forums

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

Help w/ JQL in JSM - Using != and = in same query not working

JD Lobue
Contributor
January 23, 2023

Hello,

I am using the below JQL in a JSM queue trying to exclude a label = backlog and it is not providing me all of the work items w/o those that are not equal to backlog. I've tried all kinds of renditions of this; placing the labels != portion at the end, within quotation, etc. and I am not getting what I need. Can anyone help me establish the right way to establish this JQL within a JSM queue? I want all work items that are unresolved and within those states that do not have the label = backlog. Thanks in advance.

 

labels != Backlog AND status in ("Awaiting CAB approval", "Awaiting implementation", Escalated, Implementing, "In Progress", Open, "Peer review / change manager approval", Pending, Planning, Reopened, Routed, "Under investigation", "Under review", "Waiting for approval", "Waiting for customer", "Waiting for support", "Work in progress") AND resolution = Unresolved ORDER BY "Time to resolution" ASC

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 23, 2023

When you are searching and trying to exclude labels (and components) you also have to account for issues that do not have a label at all. So try this:

(labels != Backlog OR labels is EMPTY) AND status in ("Awaiting CAB approval", "Awaiting implementation", Escalated, Implementing, "In Progress", Open, "Peer review / change manager approval", Pending, Planning, Reopened, Routed, "Under investigation", "Under review", "Waiting for approval", "Waiting for customer", "Waiting for support", "Work in progress") AND resolution = Unresolved ORDER BY "Time to resolution" ASC

JD Lobue
Contributor
January 23, 2023

Ah yes.....that was it. Thanks, Mikael.

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