Forums

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

Issue with JQL query

priym
Contributor
June 15, 2023

Hi Team,

We are using one JQL query which is not giving correct result. This is the JQL

project = QSAUDIT AND issuetype = QSAudit AND "Planned Quarter" in (2022-Q1, 2022-Q2, 2022-Q3, 2022-Q4, 2023-Q1, 2020-Q1, 2023-Q2) AND status not in ("Audit Cancelled") AND Locations ~ Jakarta OR Locations ~ Bangkok AND Functions = "Platform Foundation [Platform Foundation]" AND "Org/Customer" = "HERE (Internal Audit)"

But query is returned incorrect result which included other functions ticket as well. I am attaching snap for referenceJQL.png

1 answer

1 accepted

3 votes
Answer accepted
Frederik Vantroys
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 15, 2023

Hi @priym , 

Maybe the OR statement needs to be with (   ) to make the query work.

Try :

project = QSAUDIT AND issuetype = QSAudit AND "Planned Quarter" in (2022-Q1, 2022-Q2, 2022-Q3, 2022-Q4, 2023-Q1, 2020-Q1, 2023-Q2) AND status not in ("Audit Cancelled") AND (Locations ~ Jakarta OR Locations ~ Bangkok) AND Functions = "Platform Foundation [Platform Foundation]" AND "Org/Customer" = "HERE (Internal Audit)"

priym
Contributor
June 15, 2023

Hi @Frederik Vantroys ,

Thank you! It is working now.

Suggest an answer

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

Atlassian Community Events