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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How can I sort expired tasks with JQL?

I want to sort tasks with expired due date but I do not prefer to do it with status!=done AND due date < now(). So I tried this JQL in the below:


However, it did not work. How can I compare due date and resolved date to sort expired issues even it is done now. 

I'm open to any suggestions. Thanks.

2 answers

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 17, 2023

Hello @Özge Özgenç 

Jira does not natively support comparing fields to other fields as part of JQL. In order to do that you would need a third party app.

You might be able to use a custom field to keep track of whether or not the due date is less than the resolved date, using an automation rule to set the field, and then write a JQL with criteria for the custom field.

0 votes
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.
Apr 17, 2023

Hi @Özge Özgenç

I’m Maurício, a support engineer at Appfire and I’m here to help you.

Unfortunately, using JQL of Jira, you’ll not be able to do it dynamically.

In the app where my team works, JQL Search Extensions for Jira, you can use this query to find all tasks with expired due date:

issue in dateCompare("duedate < resolved") and project = IT and type = Task and Sprint = 1019 Order By due ASC

Please contact our support if you have any other questions about this query.

We’ll be happy to help you!

Best regards,


Hi @mauricio_groth 

Thank you for your reply. Is there any free app for this function you can recommend?

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events