How to order issues with null first or null last?


Is there a way to specify null values to be ordered first or last in an ORDER BY clause in JQL?

I'm ordering by a custom field and null values are first by default it seems...

JIRA 6.4 (web version)



1 answer

JIRA returns null as first result because in meaning of comparison, null is lower than any another value.

I don't know if you want to order all null columns or only one.

If you are going to order only one, you can use null checkers like:


reporter = abc and customfield_1 is not empty order by customfield_1 desc

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

174 views 12 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot