I need help with JQL

Samuel Prathipaty
Contributor
January 20, 2025

Hi,

How to find issues that are created in the last 2 months and are resolved with in their due dates, as well as issues resolved after their respective due dates.

2 answers

2 votes
Annu Satpute
Contributor
January 21, 2025

I am trying to answer somehow its not accepting my inputs, trying again - 

 

 

 

Hi Samuel, 

You may want to try this - 

created >= startOfMonth(-2) AND created <= endOfMonth(-1) AND status = Resolved AND ((resolved <= due) OR (resolved > due))

I hope this will help, let me know.

 

Best, 

Annu | CSM | Amoeboids

Bill Sheboy
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.
January 21, 2025

Hi @Annu Satpute 

What you show will not work with Jira Cloud's, built-in JQL features: a JQL statement cannot compare fields in the issue to one another.  It is not a SQL.

There might be marketplace apps to support such comparisons, and they are likely not in the syntax you show.

What is the source of your information for that expression?

Kind regards,
Bill

Samuel Prathipaty
Contributor
January 21, 2025

Hi @Annu Satpute,

Thank you for your response. However, it's not working; it throwing an error.

Error - Date value 'due' for field 'resolved' is invalid. Valid formats include: 'yyyy/MM/dd HH:mm', 'yyyy-MM-dd HH:mm', 'yyyy/MM/dd', 'yyyy-MM-dd', or a period format e.g. '-5d', '4w 2d'.

Samuel Prathipaty
Contributor
January 21, 2025

Hi @Bill Sheboy

Right. Is this achievable through the Enhanced Search plugin?

Bill Sheboy
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.
January 21, 2025

Hi @Samuel Prathipaty 

I do not know as I do not use that app / plugin.  Perhaps check with the vendor's documentation to learn if it will help.

Kind regards,
Bill

1 vote
Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2025

Hi @Samuel Prathipaty , thanks for your post.

Please can you share what you have so far and where you are getting stuck? Here is the documentation on how to work with advanced searches in JQL to give you a hand - https://support.atlassian.com/jira-software-cloud/docs/what-is-advanced-search-in-jira-cloud/#Construct-JQL-queries 

Best wishes

Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 21, 2025

Hey @Samuel Prathipaty , you could try this

created >= -60d AND resolution != Unresolved and duedate IS NOT EMPTY

^ just to get you started, so this is the list issues created in the last 2 months, where the resolution isn't empty (so they are resolved) and the Due date is also not empty.

If you have this column configuration, including the Resolved (which is the Resolved date) and the Due date, you could do a visual confrontation or export the data to Excel to analyse them.

image.png

Hope this helps you.

Cheers

 

Suggest an answer

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

Atlassian Community Events