How do I sort DESC with emptys last?

L May 12, 2015

There was a suggestion open in 2013 that references a similar request: https://jira.atlassian.com/browse/JRA-35284

How do I use a JQL statement to ORDER issues by priority DESC with the empty priorities appearing last?

For example, right now I have to have two separate Filters, one where "priority = EMPTY" and one where "priority != EMPTY" so that I can effectively see issues that are explicitly marked as the most important. Both filters have ORDER BY priority DESC.

What am I missing? Thank you!

2 answers

1 vote
Franklin Davis April 8, 2021
1 vote
Chander Inguva
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.
December 18, 2015

Hey,

          Please try 

priority is not EMPTY ORDER BY priority DESC

and

priority is EMPTY ORDER BY priority DESC

 

Hope this helps

Regards

Chander Inguva

Angelica Krott June 11, 2019

This doesn't appear to do what the person asked? They want a completed value to appear before null values. I'm having the same issue with date fields.

Like Francisco likes this
Francisco August 23, 2019

perhaps joining two queries/searches/JQLs? - let me check..

 

=( after spending 38 min I did not find that answer, and I created a new 'discussion?':

 

https://community.atlassian.com/t5/Jira-Core-questions/In-JQL-how-to-quot-UNION-quot-i-e-pr-1-AND-status-done-UNION-pr/qaq-p/1162157

Suggest an answer

Log in or Sign up to answer