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

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

Order by multiple fields

How do I order by one field, then within that result, order by a second field?

2 answers

1 accepted

11 votes
Answer accepted

Do your search then add as many ORDERS separated by a "," eg. ORDER BY resolution ASC, Assignee DESC.

Thanks. this was very helpful

Like # people like this

Should add for beginners who might look this up you need to switch to JQL.

Like # people like this

Hi! This does not work for the case of:

  • ORDER BY duedate ASC, Rank ASC

as I get the error about ranking

Screenshot from 2021-04-05 14-09-07.png

Has anyone else had the same?

This functionality does not work. The sorting is wrong. I am ordering  by:

ORDER BY due ASC, created ASC 

And as you can see the result is off. The second column is not sorted properly. 

screenshot.1627991358.png

Like Xavier Mulot likes this

Hint: If you have a custom field with some texts, then this works only if you sort these entries alphabetically. It seems that otherwhise the order is taken from the indexnumber and not from the string. Strange!

Suggest an answer

Log in or Sign up to answer
TAGS

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