Forums

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

JQL query sorting using keyword?

Tizzle Dexter March 27, 2019
We have a fairly complex jql query we are trying to run in our jira system, we have multiple what ifs, Exclusions etc, the filter itself is working great,however sorting it I am running into trouble. Is there a way to sort by a keyword say (*) to appear at top of the list, then sort all tickets without the keyword by the creation date

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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.
March 27, 2019

Hello,

To sort tickets you should use the ORDER BY close. For example, to sort issue by the creation date, you would write a JQL like this:

project = PROJECT order by created

Tizzle Dexter March 28, 2019

Thanks, my apologies if i was a bit unclear, it was pretty late when i wrote my original question.

What i am looking to do is a multiple tiered sorting. I want to have all tickets with a keyword appear first, then all other tickets in the same project appear by the created date. Is that a possibility?

I am thinking no and i will need to set priorities instead of keyword and sort by priority/created date?

Alexey Matveev
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.
March 28, 2019

You would need to create custom field, which would return the order of an issue and then sort by this field.

You can create such custom fields with plugins like Power Custom Fields Premium or ScriptRunner.

Like Tizzle Dexter likes this
Tizzle Dexter March 28, 2019

Thanks very much, i will look into that.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events