Forums

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

JQL - Is it possible to find tasks that were closed within a week since their creation?

Daniel Orlov
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!
July 29, 2020

I am new to JQL and experimenting with the functionality.

I would like to find all issuetype = Task that were closed within a certain time after their creation. Is it possible? I only encountered the ways to pinpoint tasks within an absolute time frame, but not relative.

2 answers

1 accepted

Daniel Orlov
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!
July 29, 2020

Thanks a lot!

Like Ollie Guan likes this
1 vote
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.
July 29, 2020

Hi @Daniel Orlov  -- Welcome to the Atlassian Community!

If you will regularly need this data and do not want to purchase a scripting add-on, you can implement this yourself using the automation rules with JIRA cloud.  For example:

  • Add a custom field to capture LeadTime (open duration)
  • Add an automation rule:
    • Trigger: issue was resolved (or moved to "done")
    • Action: edit the custom field to calculate and save the difference between create and resolved time in hours
{{#=}}ROUND({{issue.Created.diff(issue.Resolved).millis}} / (1000*60*60*24), 3){{/}}
  • Run a report for what you want to know about the custom field, such as: project = myProject AND LeadTime < someNumber

 

For more information about the automation rules, please see this documentation:

https://support.atlassian.com/jira-software-cloud/docs/automate-your-jira-cloud-processes-and-workflows/


Best regards,

Bill

Suggest an answer

Log in or Sign up to answer