JQL: is it possible to sort status by Status category

Tatiana Marti October 9, 2023

Hello,

In certain JQL searches, we would like an order by status category, or even, if possible, by order of workflow status.

Do you know if this is possible?

Thanks a lot.

Tania

3 answers

1 accepted

2 votes
Answer accepted
Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2023

Hi @Tatiana Marti 

It's not possible to order by status category unfortunately.

You can order by Status order though - the order is based on the order of Statuses within your system (i.e Jira Administration > Issues > Statuses)

ASC is classed as top > bottom of list.

Ste

Tatiana Marti October 13, 2023

hello,

It was very painful to classify the 68 statuses manually and one by one but it works

Thanks a lot

Tania

Like Ste Wright likes this
1 vote
Asha Goyal
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.
October 9, 2023

Hi @Tatiana Marti

Status category values can be used in JQL queries and formulas.You can create a custom JQL search using Status or Status Category for use in Reports and filters.

You can use below query for status category 

project= "XYZ" AND statusCategory = Done

The order by will first order by statuscategory, then if two issues have the same statuscategory, Jira will order by status.

Thanks 

0 votes
Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 9, 2023

@Tatiana Marti (cc @Ste Wright),

perhaps I'm missing something, but wouldn't

ORDER BY statusCategory

do exactly that? 

EDIT: This appears to be supported in Jira Cloud only.

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.
October 9, 2023

Hi @Hannes Obweger - JXL for Jira 

I am using Jira Cloud, and that worked for me also.  But Tatiana appears to be using Jira Server: did you try it with that version?  Thanks!

Kind regards,
Bill

Ste Wright
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2023

To be clear, I tried it on Server - it doesn't work.

Ste

Hannes Obweger - JXL for Jira
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
October 9, 2023

Yep, confirmed; thx @Ste Wright. TIL.

Like Ste Wright likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events