Issues are not getting sorted based on priority scheme

Neenu jose April 20, 2020

Hi Team,

We are using a customized priority scheme for one of our server project and the priorities are,

Blocker

Critical

Major

Medium

Minor

Trivial

(We have sorted priories as per above order in the scheme)

But when we are sorting the issues in the filter based on priorities, the issues are sorted differently, always medium is coming in the top even though we are not using any default priority.

 

Please help us to resolve this issue.

Regards,

Neenu Jose  

4 answers

1 vote
schneurk September 8, 2022

Unfortunately it's a limitation in Jira.

The Priority scheme just displays your custom order in the Priority dropdown list.

When using in JQL though e.g. ORDER BY priority DESC the priority is ordered using your default Global Priority scheme (Admin > Issues > Priority schemes).

Possible solutions:

  • Change the Global priority scheme to match your custom priority scheme
  • Customize your priority scheme using the order of your Global priority scheme (relevant for larger jira instances with many priorities)

Here's an excerpt from Jira's documentation

It's important to know how JQL works with priorities. If you use JQL to order issues by their priorities (e.g. descending), they will be ordered according to the importance of the priorities on the global list of priorities. The global list is what's displayed on the Priorities  page. The order from priority schemes is not relevant for JQL. To put it in an example, let's say the priorities in your Jira instance are arranged in the following way:

Global list (Priorities page)

  1. Urgent
  2. Highest
  3. Medium

Custom priority scheme

  1. Highest
  2. Urgent
  3. Medium

After appending a JQL query with e.g. ORDER BY priority DESC, the Urgent issues will be at the top of the list (followed by Highest, and then Medium), even if they’re in a project that uses the custom scheme. You can change the order in the default scheme on the Priorities page.

Stanisław Białowąs
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2023

As I`ve faced this priority ordering thing recently, I thought it would be worth saying that it`s not an order on Global Priority Scheme, but on Priority list, where all your instance`s priorities are (at least for Jira 8.20). There you can order them by drag`n`drop.

Nevertheless, thank you very much for providing this explanation. :) 

0 votes
Carla Ann Rowland
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.
April 5, 2021

Check your default order on your system priorities screen and group the priority list so all the High level 1 are together, Medium -3 Et Cetera then that will allow the priority custom lists to be ranked accordingly.

0 votes
Neenu jose April 22, 2020

Here it is

project = ABCD ORDER BY priority DESC

Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 22, 2020

It's looks right, are you sure that some issue have the blocker, critical or major priority in the result of your search ?

0 votes
Mohamed Benziane
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 20, 2020

Hello @Neenu jose 

Can you show us the jql your are using to filter the issue ?

Suggest an answer

Log in or Sign up to answer