JQL Compare Dates - Created vs. Updated

Hello,

is it possible to compare two dates (Created - Updated) with a JQL Query. I would like to know the average duration of an Issue!

Best regards,

Martin

4 answers

1 accepted

This widget could not be displayed.

Average Duration of an Issue is available in "Average Time in Status" gadget.

And for getting days between dates, use script runner and add a scripted field which can get the difference between Created and Due dates.

def diff = new Timestamp(issue.getDueDate().getTime() - issue.getCreated().getTime()).getTime()
def days = (int)(diff/ (1000 * 60 * 60 * 24)); 
return days

Typo: need to do diff between custom fields that get updated using post functions. Or use issue history and get the statuses' transition date and give the difference.
This widget could not be displayed.

You can't do this with a JQL query. Write a custom report or see if there are any existing ones in marketplace.

This widget could not be displayed.

anybody find a good way to do this? We're trying to report stories that are late by comparing a due date with release date.

A custom field with that does the day difference would be great. Anybody have ideas?

thanks.

This widget could not be displayed.

Script Runner has a date compare JQL Function

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

193 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you