Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JQL query with different status arguments

Amvrosios Gogos June 3, 2024

Hello team,

I am trying to create a JQL query that will return the tickets of an assignee in a specific project that are not finished (meaning that their status is not "DONE" or "RESOLVED")

Tried some different query versions with this one getting me closer to what I need: 

project = "Customer service desk" and assignee = XXXXXXX AND (status != Done OR status != Resolved)

But is not filtering the Done or Resolved tickets, it just returns everything from the particular assignee.

Interesting enough, when I remove the parentheses the filter does not work at all (!) and returns tickets from other users and other projects.

Any help would be appreciated!

 

Thank you

 

2 answers

1 accepted

0 votes
Answer accepted
Amvrosios Gogos June 6, 2024

After some testing it seems that the correct syntax is something like this: 

 

project = "Customer service desk" and assignee = XXXXXXXAND status in (Approved, "AWAITING APPROVAL", Open, "PENDING IMPLEMENTATION", Reopened)

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 6, 2024

This is a work around if you do not have the resolution status as a Done category status. Why are you not doing that?

1 vote
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 3, 2024

Hi Amvrosios - Welcome to the Atlassian Community!

Just try this: project = "Customer service desk"  and assignee = XXXXXXX AND statusCategory != Done

Amvrosios Gogos June 4, 2024

Hello @John Funk  !

Thank you for your time and effort to address my question

The thing is that using:

project = "Customer service desk"  and assignee = XXXXXXX AND statusCategory != Done

It returns also the tickets with status "Resolved" which is also tickets I want filtered

Maybe I have a syntax error on my code, the general idea is that I don't want tickets with status Done  or  Resolved

Is there anything else you could recommend ?

Thank you,

Amvrosios

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 5, 2024

Why are tickets being marked resolved that are not in a Done status category? What status are they in? 

Amvrosios Gogos June 5, 2024

Their status is "resolved" 

Is a custom status that we have created. Is that relevant to the query?

 

Thank you,

Amvrosios

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 5, 2024

That's okay as long as the Resolved status is a Done category status. 

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