How to create JIRA Filter to calculate average time spent on tickets

Eric Chow May 2, 2022

I am trying to create JIRA Filters to calculate average time spent on various tickets.

  • Average time to close a non-EPIC JIRA ticket
  • Average time to close a ticket

I am also trying to create a JIRA filter for the follwowing:

  • Tickets that went from DONE back to IN-PROGRESS

5 answers

1 accepted

0 votes
Answer accepted
Garrett McCreery
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.
May 2, 2022

Hi Eric, welcome to the community!

First I would like to understand the difference in what you mean by a non-Epic Jira ticket and a ticket? The easiest way to do this is to get the data and columns you need and then use Excel to calculate.

For the second filter this should work:

(if it's still "In Progress")

 status = "In Progress" and status was in ("Done")

Eric Chow May 2, 2022

Hi @Garrett McCreery,

The main difference is the TYPE. For instance TYPE != EPIC vs. TYPE = Contract Review.

Are there specific columns I need in order to calculate this? Open Date vs. Close Date?

Garrett McCreery
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.
May 3, 2022

@Eric Chow 

If you are looking to calculate from when the ticket was opened to when it was closed, you will need to show the columns "Created" and "Resolved"

When you are looking for specific issue types, there is a field in the JQL called issueTypes, so you can use issueType != Epic.

Hope this helps, let me know if you have any other questions.

5 votes
Mariana_Pryshliak_Saasjet
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 3, 2022

Hello @Eric Chow 

Unfortunately, I can't help you with the filter creation, but as an alternative, you can try Time in Status for Jira Cloud which generates status time reports, including an Average time report that shows the average time in status.

averagetimereport.png

There is the ability to filter tickets by:

  • assignee;
  • project;
  • sprint;
  • epic, etc.

averagetimefiltering.png

Is that what you need? 

Also, you can export a generated report to CSV or XLSX files.

It's developed by my team and is free for using up to 10 users. Please, let me know if you have any questions.

0 votes
Emre Toptancı _OBSS_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 9, 2022

Hello @Eric Chow

JQL by itself can't give you averages. You need use a marketplace app for that. Our team at OBSS built Time in Status for this exact need. It is available for Jira Server, Cloud, and Data Center.  

Time in Status mainly allows you to see how much time each issue spent on each status and on each assignee.

tisCloud_StatusDuration_LeadTime_with Estimates.png  tisCloud_AssigneeDuration.png     

The app has Consolidated Columns feature. This feature allows you to combine the duration for multiple statuses into a single column and exclude unwanted ones. It is the most flexible way to get any measurement you might want. Measurements like Issue Age, Cycle Time, Lead Time, Resolution Time etc.

For all numeric report types, you can calculate averages and sums of those durations grouped by the issue fields you select. For example total in-progress time per customer (organization) or average resolution time per sprint, week, month, issuetype, request type, etc. The ability to group by parts of dates (year, month, week, day, hour) or sprints is particularly useful here since it allows you to compare different time periods or see the trend.

tisCloud_StatusDuration_LeadTime_Average_TimeGrouped.png

The app calculates its reports using already existing Jira issue histories so when you install the app, you don't need to add anything to your issue workflows and you can get reports on your past issues as well. It supports both Company Managed and Team Managed projects.

Time in Status reports can be accessed through its own reporting page, dashboard gadgets, and issue view screen tabs. All these options can provide both calculated data tables and charts.

And the app has a REST API so you can get the reports from Jira UI or via REST.

Gadget_AverageStatusDurationByComponent.png  tisCloud_StatusDuration_LeadTime_Chart.png

Using Time in Status you can:

  • See how much time each issue spent on each status, assignee, user group and also see dates of status transitions.
  • Calculate averages and sums of those durations grouped by issue fields you select. (For example, see average InProgress time per project and per issue type.)
  • Export your data as XLS, XLSX, or CSV.
  • Access data via REST API. (for integrations)
  • Visualize data with various chart types.
  • See Time in Status reports on Jira Dashboard gadgets

https://marketplace.atlassian.com/apps/1211756/

EmreT

0 votes
Rahul_RVS_Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 8, 2022

Hi @Eric Chow 

Welcome to the community !!

You can try out our add-on to get this data.

The main features of the app are as below
  • Multiple Time in Status Reports. Excel Export available for all status reports.
    • Time in Status
    • Time with Assignee
    • Time in Status with Assignee
    • Time with Assignee per Status
    • Status/Assignee Count
    • Multiple Transition Reports
    • Avg Time in status reports
    • Status Transition Dates Report
    • Time in Status Per Time Grain
    • Time with Assignee Per Time Grain
  • Status grouping
  • Save your reports
  • CSV Export
  • Multiple chart types
  • Dashboard Gadget

TIS.PNG

0 votes
Bloompeak Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 5, 2022

Hi @Eric Chow

Welcome to the Atlassian Community!

For the first 2 questions, you can try Status Time Reports app developed by our team. It mainly provides reports and gadgets based on how much time passed in each status.

  • You can select issue fields and statuses that you want to see in your report. It has a dynamic status grouping feature so that you can generate various valuable reports as time in status, time in assignee, status entry dates and status counts, cycle time and lead time, average/sum reports by any field(e.g. average in progress time by project, average cycle time by issue creation month).
  • You can search issues by Project, Issue Type, Status, Assignee, Issue Creation/Resolution Date(and any other Date field) and JQL Query.
  • Status durations are calculated according to the working calendar you define. Once you enter your working calendar into the app, it takes your working schedule into account too. That is, "In Progress" time of an issue opened on Friday at 5 PM and closed on Monday at 9 AM, will be a few hours rather than 3 days.
  • You can set different duration formats.
  • You can export reports in CSV file format and open them in MS Excel.
  • You can also add this app as a gadget to your Jira dashboards and reach “Status Time” from Issue Detail page.
  • You can enable/disable access to Status Time reports&gadgets and Issue Detail page per project, users, groups or project role.

Here is the online demo link, you can see it in action and try without installing the app.

If you are looking for a free solution, you can try the limited version Status Time Free.

For the last question, you can create a filter by using the below JQL:

status changed from "DONE" to "IN PROGRESS"

Hope it helps. 

Suggest an answer

Log in or Sign up to answer