It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to order issues with null first or null last?

Rodrigo Martínez Aug 26, 2015

Greetings

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)

 

Cheers

1 answer

0 votes
Guilherme Nogueira Aug 26, 2015

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:

E.g.

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

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

215 views 22 10
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you