How to sort issues by their priorities


I have given priories to all issues/tasks (from 1 - to 5) now I want to sort them (in an ongoing sprint) by priorities - high to low. which query should I write? 

this one doesn't work => project = MyAwesomeProject ORDER BY priority DESC"

and this one also not working ORDER BY RANK

2 answers

1 accepted

0 vote
Ignacio Pulgar Community Champion Dec 19, 2017

For doing so in Active Sprints, follow these steps:

  1. Go to Board > Configure > Swimlanes
  2. Base swimlanes on Queries
  3. Set one JQL query for each priority (ie: 'priority = Blocker')
0 vote

I assume your priorities are done with the system field called "priority"?

This is a field that has a sort order defined by the admin, not by the content, so your order by clause will be working off that sort order, not 1, 2, 3, 4, 5 (although, as an admin, I would be setting that sort order)

Can you check that it is the system priority field that is in use, and what the sort order for your options are?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
Read article

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