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

JQL for all done statuses

Nate Dickinson
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.
February 16, 2024

How do I write a JQL query to pull done statuses? By this I mean all green status types. That for me in our instance includes some of the following as an example: 

  • done
  • complete
  • canceled 
  • rejected 
  • deployed
  • etc

 

Is there a query that will let me use one line that will handle all of these current statuses and any that come up in the future ? This would also be helpful for the future when a new done status may be added. 

1 answer

1 accepted

5 votes
Answer accepted
Bill Sheboy
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.
February 16, 2024 edited

Hi @Nate Dickinson 

Please try using the statusCategory for the issues instead:

statusCategory = Done

 

Also please note, if you are using any Scrum boards: the statusCategory is not used to determine if an issue is completed for a sprint.  Instead it checks for issues in a status mapped to the column at the right side of the board.  This is a valuable thing to check for board configurations as sometimes teams have more complicated boards which do not put the "done" statuses at the far right.

Kind regards,
Bill

Nate Dickinson
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.
February 16, 2024

Thank you Bill. That should work. 

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events