Forums

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

Average Resolution Time

Vando Goncalves _e-Core_
Community Champion
November 25, 2025

Hi Guys!

So, I'm working on a dashboard, and my goal is to get the average resolution time for a certain subset of work items.

I'm able to get Work Item Key, Created Date and Resolved Date, and to get the resolution time of each work item, I'm using a formula column as "date difference (Created at, Resolution at, Hour)".

With that, I'm getting the resolution time, in hours, for each work item.

Now comes the part I'm struggling with:

How do I get the average of this date difference, considering the number of work items being queried?

For example:

 Work item Key Created at Resolution at   Datediff
 WI-1  2025-10-27 15:27:35.144  2025-10-27 17:36:05.628  2
 WI-2  
2025-10-27 15:29:26.282
 2025-10-28 19:03:04.621 27
WI-3 2025-10-27 16:14:59.043 2025-10-29 15:44:10.926 47

 

I have 3 work items, and the resolution time for each of them is in the column Datediff.

The total resolution time would be 76h so the average would be 25.33h.

 

 

What I’m trying to figure out:

How can I calculate the average of the Datediff column directly in the SQL / query editor?

I can calculate the Datediff individually, but I’m struggling to compute the average across all returned rows within Atlassian Analytics.

Any suggestions on how to structure the query or use a nested query/CTE to achieve this?

Thanks in advance!

2 answers

1 accepted

1 vote
Answer accepted
Jamie Giantonio
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2025

@Vando Goncalves _e-Core_ if you want to use a single value indicator chart, hide all the other fields and then use the GROUP AND AGGREGATE function and get the AVG of your datediff column

AA.png

If you want an average at the bottom of a grid view leave the 4 columns and Edit the chart settings. On the General tab, check Show row aggregation for Numeric columns.

aa3.png

Then on the Formatting tab, and a custom format for that column,  and for aggregation chose Average.

aa2.png

Vando Goncalves _e-Core_
Community Champion
November 27, 2025

Thanks you SO MUCH @Jamie Giantonio !

0 votes
Birkan Yildiz _OBSS_
Atlassian Partner
November 28, 2025

Hey @Vando Goncalves _e-Core_

Here is another angle you might find helpful. Calculating average Resolution Time in SQL means you are calculating based on a 24/7 clock. A standard Datediff includes nights and weekends, which skew your metrics.

If you are open to use a marketplace app, Timepiece - Time in Status for Jira is designed to handle these calculations automatically without any complex queries.

You can use its Duration Between Statuses report to instantly get your Resolution Time (and other agile metrics you desire). The system automatically calculates the Average (or Sum/Median) for you.

image-20251127-133414.png

Besides, you can group your issues by Created Date, Priority, Issue Type, or any other field to see the averages for those specific subsets instantly.

image-20251128-075654.png

And you do not need to wait to get data you want. It calculates this for all your retrospective data immediately And of course, you can even display this data directly on your Jira Dashboard using its gadgets.

To learn more about Timepiece, check it out on the Atlassian Marketplace.

Full disclosure, I'm on the team that makes Timepiece - Time in Status for Jira.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events