Forums

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

Dashboard JQL

jmercado February 27, 2023

Hello Jira Community,

Could someone please help me fix my dashboard jql query? I am new to Jira (5 days of playing around) and I have a DB that I am trying to fix.

I would like to show all tickets that have breached SLA but I would like to filter all tickets where Status = Resolved or all tickets where LOS Request Type = Vendor Setup. LOS Request type is a custom drop-down field for us.

I have exported the manual excel file and based on my manual count i have 72 tickets breaching SLA. if I am to filter Resolved tickets and those under Vendor Setup, then I should only see 28.

Below is the query I am using but it does not seem to properly filter for the two criteria. this query is giving me 64 instead of 28. can you please tell me if I am missing anything in my query?

project = "10524" AND "Time to resolution" = breached() AND ("LOS Request Type[Dropdown]" != "Vendor Setup" OR status != Resolved)

I don't see a way to attach a file, so I am just pasting the table below for the raw data. This is how I know that I should only be seeing 28 and not 64.

 

Custom field (LOS Request Type)Issue keyIssue idStatusProject key
Invoice Payments or IssuesLOS-204451983PendingLOS
Vendor SetupLOS-203451974In ProgressLOS
CL SupportLOS-202451893In ProgressLOS
Vendor SetupLOS-201451888In ProgressLOS
Vendor SetupLOS-199451859In ProgressLOS
Vendor SetupLOS-198451858Waiting for supportLOS
Vendor SetupLOS-197451857Waiting for supportLOS
Vendor SetupLOS-196451856Waiting for supportLOS
Vendor SetupLOS-195451855Waiting for supportLOS
Vendor SetupLOS-194451854Waiting for supportLOS
Vendor SetupLOS-193451853Waiting for supportLOS
Vendor SetupLOS-191451851Waiting for supportLOS
Vendor SetupLOS-190451850Waiting for supportLOS
Vendor SetupLOS-189451849Waiting for supportLOS
Vendor SetupLOS-188451848Waiting for supportLOS
Vendor SetupLOS-187451847In ProgressLOS
Vendor SetupLOS-186451846In ProgressLOS
Vendor SetupLOS-185451844In ProgressLOS
Vendor SetupLOS-184451843In ProgressLOS
Invoice Payments or IssuesLOS-180451831Waiting for supportLOS
Vendor SetupLOS-179451829In ProgressLOS
New Matter CreationLOS-177451803In ProgressLOS
Invoice Payments or IssuesLOS-176451793Waiting for customerLOS
CL SupportLOS-175451785In ProgressLOS
Legal Ops Project or TaskLOS-174451782In ProgressLOS
ForecastsLOS-172451763In ProgressLOS
CLM SupportLOS-169451705PendingLOS
CL SupportLOS-163451667In ProgressLOS
Contracts GeneralLOS-162451666Waiting for supportLOS
Invoice Payments or IssuesLOS-161451657ResolvedLOS
Contracts GeneralLOS-147451605ResolvedLOS
Legal Ops Project or TaskLOS-146451589Waiting for supportLOS
Reports and AnalysisLOS-145451586Waiting for supportLOS
Vendor SetupLOS-139451190In ProgressLOS
CL SupportLOS-138450964Waiting for supportLOS
CLM SupportLOS-136450530ResolvedLOS
CL SupportLOS-116450509Waiting for supportLOS
Legal Ops Project or TaskLOS-114450507Waiting for supportLOS
Legal Ops Project or TaskLOS-112450505Waiting for supportLOS
Invoice Payments or IssuesLOS-109450487ResolvedLOS
Contracts GeneralLOS-106450383ResolvedLOS
Invoice Payments or IssuesLOS-98450201ResolvedLOS
ForecastsLOS-97450124Waiting for supportLOS
Vendor SetupLOS-95450122ResolvedLOS
Vendor SetupLOS-90450048In ProgressLOS
CL SupportLOS-89450045In ProgressLOS
CL SupportLOS-88450042ResolvedLOS
Invoice Payments or IssuesLOS-85449956In ProgressLOS
Invoice Payments or IssuesLOS-82449935In ProgressLOS
Vendor SetupLOS-79449824ResolvedLOS
Invoice Payments or IssuesLOS-76449790In ProgressLOS
CL SupportLOS-75449702ResolvedLOS
Invoice Payments or IssuesLOS-74449701ResolvedLOS
CL SupportLOS-71449622Waiting for supportLOS
ForecastsLOS-70449621ResolvedLOS
Invoice Payments or IssuesLOS-68449571ResolvedLOS
Vendor SetupLOS-61449430ResolvedLOS
Vendor SetupLOS-59449359ResolvedLOS
Vendor SetupLOS-57449355ResolvedLOS
ForecastsLOS-55449147ResolvedLOS
 LOS-43448458Waiting for supportLOS
 LOS-42448457Waiting for supportLOS
Vendor SetupLOS-41448456In ProgressLOS
 LOS-40448455ResolvedLOS
 LOS-36448440ResolvedLOS
CLM SupportLOS-32448309ResolvedLOS
Invoice Payments or IssuesLOS-28448088ResolvedLOS
Invoice Payments or IssuesLOS-27448086Waiting for supportLOS
 LOS-26448081ResolvedLOS
CL SupportLOS-25448080ResolvedLOS
Invoice Payments or IssuesLOS-22447987Waiting for supportLOS
Invoice Payments or IssuesLOS-20447979CANCELEDLOS

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
February 28, 2023

Hi @jmercado - The issue is in your "OR" statement.  With the OR clause, you're telling Jira to return Vendor Setup OR return anything unresolved.  Change the OR to AND and see if this returns the desired results:

project = "10524" AND "Time to resolution" = breached() AND "LOS Request Type[Dropdown]" != "Vendor Setup" AND status != Resolved
jmercado February 28, 2023

Thanks, Mark.

that is actually what I was looking for. all tickets that are NOT Vendor Setup or NOT Resolved (all Unresolved). Actually, since I cannot fix this yesterday, I ended up doing the basic search. In the field dropdowns, I unchecked my filters (that is vendor set up and Resolved). Below is the JQL I got in the background. It does not look pretty (it's too long), but looks like it worked for my case. Would you comment again please if this is unsafe or not ideal to do?

[query intentionaly deleted]

Mark Segall
Community Champion
March 1, 2023

The thing to keep in mind with OR is that it can be deceptive when searching for the negative.  Let's break down your original JQL:

project = "10524" AND "Time to resolution" = breached() AND ("LOS Request Type[Dropdown]" != "Vendor Setup" OR status != Resolved)
  • Project = "10524" 
    • You're telling it to look at a single project
  • AND "Time to resolution" = breached() 
    • Within the project find everything breached
  • AND ("LOS Request Type[Dropdown]" != "Vendor Setup" OR status != Resolved)
    • Within the project everything breached and 
      • all issues that are not tagged as Vendor Setup (any status)
        OR
        any issues where status is not resolved regardless of Vendor Setup

Now your new query that was created by basic view translates to this (which is very similar to the one I provided in my previous response:

Project = LOS and status Not IN (Resolved) and "LOS Request Type[Dropdown]" NOT IN ("Vendor Setup") AND "Time To Resolution" = Breached()

Let's break this one down:

  • Project = LOS
    • Still telling it to look at a single project
  • AND status Not IN (Resolved)
    • Within the project all issues that are not resolved
  • AND "LOS Request Type[Dropdown]" NOT IN ("Vendor Setup")
    • Within the project all issues that are not resolved and not tagged Vendor Setup
  • AND "Time To Resolution" = Breached()
    • Within the project all issues that are not resolved, not tagged Vendor Setup, and in breach
jmercado March 1, 2023

Thanks so much. I changed the formula and copied yours and I got the same result (compared to my long basic query). I will use this formula moving forward. Thanks as well for patiently breaking down the details of the JQL query. That's really helpful.

Thanks again and have a great day, @Mark Segall

Like Mark Segall likes this

Suggest an answer

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

Atlassian Community Events