Forums

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

JQL Query for status = new is listing all status

Muhammad Akram Sharifi
Contributor
March 29, 2021

Hi everyone 

I am working on a filter for Queues where Queue have to get only those issue where the status on the issues are New 

status = NEW

everything else is working perfect on the JQL for some reason I get all Status issue. 

here is my JQL.

Project = "External Customer Support" AND status = New AND request-channel-type = portal OR request-channel-type = jira AND "RS Product" in ("Hardware", "Payment Portal") OR "Portal Product" in ("Hardware", "Payment Portals:") AND assignee is EMPTY

thanks in advance. 

 

2 answers

1 accepted

3 votes
Answer accepted
Callum Carlile _Automation Consultants_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 29, 2021

Hi @Muhammad Akram Sharifi 

It looks like you need to add in some brackets here to isolate your ANDs and your ORs. Currently, your statements after the two ORs will be pulling in tasks which aren't in the New status, but they satisfy the OR requirements

I'm not sure exactly what you're wanting to be displayed, but perhaps this will fix your issue:

Project = "External Customer Support" AND status = New AND (request-channel-type = portal OR request-channel-type = jira) AND ("RS Product" in ("Hardware", "Payment Portal") OR "Portal Product" in ("Hardware", "Payment Portals:")) AND assignee is EMPTY
3 votes
Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 29, 2021 edited

Hi @Muhammad Akram Sharifi , 

 

it's because the OR statement will break your query : it gives you ALL tickets with "request-channel-type = jira" and ignores the AND around it. To fix it you need parenthesis : 

Project = "External Customer Support" AND status = New AND (request-channel-type = portal OR request-channel-type = jira) AND ("RS Product" in ("Hardware", "Payment Portal") OR "Portal Product" in ("Hardware", "Payment Portals:")) AND assignee is EMPTY

 

Let me know if this helps, 

 

--Alexis

Muhammad Akram Sharifi
Contributor
March 29, 2021

Hi @Alexis Robert  and @Callum Carlile _Automation Consultants_ 

thank you so much both answers worked for me.

Like • Callum Carlile likes this

Suggest an answer

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

Atlassian Community Events