Forums

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

JQL subtracting dates

Ronan Treacy
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2023 edited

I am trying to find issues where the time taken between status changes is within a certain timeframe.

As an example I want to find tasks where the started to completed timeframe is less than one week.

I want something similar to the below JQL - subtract 1 week from done date and get tickets that were started after that point:

status CHANGED to "In Progress" AFTER status CHANGED TO Done - "1w"

2 answers

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 22, 2023

This level of complexity is not reachable with native JQL features.

You could fairly easily achieve that list of issues like this:

  1. With the Better Excel Exporter  app, using the "Issues with change history" export, export your issues to Excel
  2. Create a formula that finds the date when the "status" field changed to the new value "In Progress" (if it could happen multiple times, then you should think about precedence: is it the first one or the latest one that matters?)
  3. Same for "Done"
  4. Use a formula that returns TRUE if the first value is less than the second value minus one week (Excel has great functions for date operations)
  5. Filter down to those rows where the formula returns TRUE

The app is here:

https://marketplace.atlassian.com/apps/1212652/better-excel-exporter-for-jira?hosting=cloud&tab=overview

The original spreadsheet will be like this:

jira-issues-selected-fields-with-repeating-change-history.png

(Discl. it is a paid and supported app, developed by our team.)

0 votes
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.
February 22, 2023

Hello @Ronan Treacy 

You cannot achieve what you want with native JQL functionality.

Are you open to using a third party app?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events