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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

JQL order by with condition Edited

Is there a way to build a JQL to achieve the following order.

A list needs to be sorted by the start date, but if it is not present, then by the due date:

Example:

Issue Start_Date DueDate

i1                        1/1/2020

i2       2/1/2019   2/20/2020

i3                         2/10/2020

 

 

Thank you

1 answer

Hi @Roman_Chernysh ,

Please use JQL as mentioned in the below:

project = demo ORDER BY Start_Date ASC, DueDate ASC

Here, JQL searches for all issues in 'demo' project and sorts them based on Start_Date in ascending order, if Start_Date is not present then sorts based on the DueDate in ascending order. FYI, you can use DESC to order the issues in descending order.

Thanks,

Raja

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