Is it possible to track (in hours or days) how long a ticket has spent in the different status's?
Asked by Tom Rosenberg:

A ticket is 'Created' then get changed to 'Open' or 'In Progress', then gets changed to 'Waiting for Engineer', then back to 'Open' then to 'Waiting for Customer', then to 'Closed'.   
I am hoping to be able to to work out the averages of the time spent in ALL the status's for groups of tickets from different 'Issue Types'.  
Example: For 'Bug' tickets raised in June on average they spent:  
x hours in 'New', y hours in 'Open', z hours 'waiting for engineer' and so on.......  

Any guidance gratefully received..?


Answers:
author: Valeriia_Havrylenko_SaaSJet
body: Hi [@Tom Rosenberg](/t5/user/viewprofilepage/user-id/5542572) ?

<br />

You have two options to see how long a ticket has spent in the different statuses

1. **By JQL (Jira Query Language):** You can use JQL to create a filter that includes both

   the creation date and the resolution date of the issues. By constructing a query, you can retrieve the necessary data to calculate the resolution time. Here's an example of how you can do it:  

   *created \>= "2023-01-01" and created \<= "2024-01-31" AND resolved \>= "2023-01-01" and resolved \<= "2024-01-31"*

   Replace "start_date" and "end_date" with the desired date range. This query will filter issues created and resolved within that range.

2.**By add-ons like [Time In Status](https://marketplace.atlassian.com/apps/1219732/time-in-status-for-jira-cloud?hosting=cloud&tab=overview&utm_source=Atlassian_Marketplace&utm_medium=referral&utm_campaign=Comment_Is-it-possible-to-track-in-hours-or-days-how-long-a-ticket-hase_20240714):** This add-on tracks the amount of time an issue spends in each status. You can easily gat report about how long an issue was "open" and the exact date and time it was "resolved". Just simply:

1. Filter issues by **Resolved**
2. **Set date range** for issues.   

   ![?????? ?????? 2024-04-15 ? 16.15.01.png](https://community.atlassian.com/t5/image/serverpage/image-id/318325iF191C74D86DDB504/image-size/large?v=v2&px=999 "?????? ?????? 2024-04-15 ? 16.15.01.png")  

Add-on developed by my SaaSJet team.  
Let me know if you need further assistance with either option!


author: Amay Purohit_RVS
body: Hi [@Tom Rosenberg](/t5/user/viewprofilepage/user-id/5542572)

Welcome to the community !!

You can use Jira Rest APIs to capture this information or you can use a third party app as well to get this data easily. If you are open to try out one, do take a look at

[Time in Status Reports](https://marketplace.atlassian.com/apps/1226187/time-in-status-reports?hosting=cloud&tab=overview)  
One of the many reports which the app provides is Time in Status ie how much the issue spent in which status.

The app has 20+ reports to meet a variety of time in status use cases. Do give it a try.

[More Details here](https://community.atlassian.com/t5/App-Central/Time-in-Status-Reports/ba-p/2348133)

Disclaimer : I work for the vendor who built this app

![TIS-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/335307i202D9CFB3CB313D1/image-size/large?v=v2&px=999 "TIS-1.png")

comments: author: Tom Rosenberg
body: ??


author: Joe Pitt
body: there are some plugins Check out <https://community.atlassian.com/t5/App-Central/Time-in-Status-in-Jira-What-is-it-and-how-to-track/ba-p/2275979>

comments: author: Tom Rosenberg
body: ??


author: Ivan Garcia _Appfire_
body: Hi [@Tom Rosenberg](/t5/user/viewprofilepage/user-id/5542572) , welcome to the community :)

Unfortunately there's no built-in way of achieving this in Jira. Luckily, there exist some apps that can help you. I'd recommend our app [**Dashboard Hub Pro**](https://apps.appf.re/dh/amp/tis).

It makes it possible to track the time a ticket has spent in different statuses and calculate averages for groups of tickets. This app offers a comprehensive solution for your needs:

* **Time in Status Reports**: Track how long each ticket spends in every status throughout its lifecycle. You can view this information in hours or days, depending on your preference.
* **Customizable Filters**: Filter your reports by issue type, date range, assignee, and more to focus on specific groups of tickets, such as 'Bug' tickets raised in June.
* **Average Time Calculation**: Easily calculate the average time tickets spend in each status, providing insights like the average hours spent in 'New', 'Open', 'Waiting for Engineer', etc.
* **Interactive and Visual Dashboards**: Create visual and interactive dashboards that display your time in status data in a clear and understandable way. Combine these with other metrics and charts from 15+ product integrations for a holistic view.
* **External Sharing**: Share your dashboards and reports externally with links, making it easy to communicate findings with stakeholders outside of your immediate team.

![Highlight Image 2 - Cloud (2).png](https://community.atlassian.com/t5/image/serverpage/image-id/335826i5C794370CC4F3773/image-size/large?v=v2&px=999 "Highlight Image 2 - Cloud (2).png")

With [**Dashboard Hub Pro**](https://apps.appf.re/dh/amp/tis), you can not only track the detailed status durations but also analyze and visualize this data to gain valuable insights into your project's performance.

I hope this helps you achieve the detailed tracking and reporting you're looking for!

Best regards,

Ivan


author: Mehmet A _Bloompeak_
body: Hi [@Tom Rosenberg](/t5/user/viewprofilepage/user-id/5542572)

Welcome to the Atlassian Community!

There is no built-in solution for time in status info in Jira. If you prefer using a marketplace app, you can try [Status Time Reports](https://marketplace.atlassian.com/1221826) app developed by our team. It mainly provides reports and gadgets based on how much time passed in each status.  

Here is the [online demo link](http://status-time.bloompeak.io/demo), you can see it in action and try without installing the app. For your case, you can have a look at [Time in Status for Each Issue](https://bloompeak.atlassian.net/plugins/servlet/ac/io.bloompeak.status-time/st-report?ac.reportid=11) report.

For further details, you can have a look at [Status Time Reports How to Videos.](https://www.youtube.com/playlist?list=PLVHoaAkoFPJnG9nLkzcxG0P00ndQgimDs)

* This app 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, resolution 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.

If you are looking for a completely **free** solution, you can try the limited version [Status Time Reports Free](https://marketplace.atlassian.com/apps/1222051).

If you have any questions, feel free to [schedule a demo](https://bloompeak.io/schedule-a-call) with us.

Hope it helps.


author: Gizem G?k?e _OBSS_
body: Hello [@Tom Rosenberg](/t5/user/viewprofilepage/user-id/5542572) ,

Welcome to the community!

There is no built in solution in Jira for this. So in order to track the time spent on each status I suggest you use a marketplace app. [Timepiece (formerly Time in Status)](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer) ,the oldest and leading "Time in Status" app in Atlassian Marketplace, which is developed by my team at OBSS, has a report type that will meet your need. Our app is available for both Jira Cloud, and Data Center.

Timepiece mainly allows you to see how much time each issue spent on each **status** or each **assignee** .

**Status Duration** report (please see the screenshot above) which shows how much time each issue spent on each status. You can combine the time for multiple statuses to get metrics 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 average time spent on statuses per created month, issuetype, request type, etc. Please see the screenshot below that I prepared for your case.

![Timepiece Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/335301i55EAAC3D41A841F7/image-size/large?v=v2&px=999 "Timepiece Screenshot.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.

Timepiece 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.

Visit [Timepiece (formerly Time in Status)](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer) to explore how our JIRA add-on can revolutionize your metrics measurement process. Enjoy **a 30-day free trial** to experience the full range of features.

If you wish, you can also [schedule a live demo.](https://calendar.app.google/faQYgsEekRdFxnPj7) We will provide a comprehensive overview of the application and address any inquiries you may have.

Hope it helps,

Gizem

comments: author: Tom Rosenberg
body: Hi [@Gizem G?k?e _OBSS_](/t5/user/viewprofilepage/user-id/5319899) thank you for that answer. I had heard of 'Time in Status', but was curious if it was possible in the regular platform. ??


Tags: cloud

jira-cloud