Forums

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

Is there a function for jira JQL and automations to get the list of resolved/closed states?

Raffaele Litto March 16, 2022

So that I can do "status in closedStates()" or "status not in closedStates()" ?

2 answers

1 accepted

0 votes
Answer accepted
Craig Nodwell
Community Champion
March 16, 2022

Try statusCategory()
Jira only has 3 status categories regardless of the number of statuses, providing the admin set the status category correctly on creation this should give you what you want.

statusCategory in (Open, "To Do", Done)
statusCategory not in (Open, "To Do", Done)

Craig Nodwell
Community Champion
March 16, 2022

of course you need to adjust what you are looking for I just gave all 3 possibles.

Nic Brough -Adaptavist-
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.
March 16, 2022

Remember that the resolution is totally separate.

You can easily have status in the "done" category with issues that are unresolved for example.  Most of us set up workflows to try to avoid that, setting resolutions as issues go into "done" category status, and clearing them for To Do and Open, but you can't assume that's always the case.

Obviously for resolution, it's just "resolution is empty" for the to-do/open issues and "resolution is not empty" for closed

Like Craig Nodwell likes this
0 votes
Peng Zhou
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.
March 16, 2022

Use this JQL query:

Status = Resolved

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events