Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

"Order by" does not appear to be working for me

Andrew Yoward November 6, 2020

I have a queue which holds all the unassigned open tickets.  I want to be able to order this by highest priority, oldest ticket as the one that then appears at the top of the list should be the one that is taken next.  However, I don't appear to be able to do that.  It will order either by priority OR by date, but not both.

Here is my JQL, can anyone see what I'm doing wrong?

resolution = Unresolved AND assignee is EMPTY AND status != Closed AND status != Resolved AND status != Declined ORDER BY createdDate ASC, Priority DESC

This is the outcome of that JQL

Queue2.pngIf I change the order to ORDER BY Priority DESC, createdDate ASC I get this

Queue1.png

2 answers

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Champion
November 6, 2020

I can’t easily observe your images as I am on my phone.

A couple of things to try...

use order by issuekey desc, priority desc

paste your query into the Advanced search and observe results

Andrew Yoward November 6, 2020

Using issuekey seems to have cracked it!!

I used ORDER BY Priority DESC, issuekey ASC and that seems to work.

 

Thank you.

0 votes
Andrew Yoward November 6, 2020

Queue1.pngThis is the result when you have ORDER BY Priority DESC, createdDate ASC

Andrew Yoward November 6, 2020

Queue2.pngThis is the result when you have ORDER BY createdDate ASC, Priority DESC

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events