Time in status custom fields
Asked by Eran Roiter:

Hello everyone,

I would appreciate your help in finding a solution using ScriptRunner or any other method you know.

I have set up a field where I want to capture the total time a ticket spends in specific status groups. I attempted to use multiple automations to populate this field, but it didn't work, and I need to use ScriptRunner.

If anyone has tackled a similar challenge, my ultimate goal is to SUM UP the time for several tasks. For example, I want to see the total time each task spent in these status groups at the epic or initiative level as the sum of all the subtasks.

I believe I am not the first or the last to face this need and hope someone has managed to overcome this issue.

Thank you and have a good day,  
Eran


Answers:
author: Rilwan Ahmed
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455) ,

[Time in Status](https://marketplace.atlassian.com/apps/1219732/time-in-status?tab=overview&hosting=cloud) plugin seems to be the solution. Also you can check Atlassian Marketplace for other plugins


author: Valeriia_Havrylenko_SaaSJet
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455) ?  

There is no built in solution such 'time in status' in Jira for this. For capturing the total time a ticket spends in specific status groups, you can try [Time in Status](https://marketplace.atlassian.com/apps/1219732/time-in-status-for-jira-cloud?hosting=cloud&tab=overview&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Time-in-status-custom-fields_20240610).

For this simply:

1. Select Time in Status Report
2. Filter by JQL like *project = "name" and issuetype = Task*
3. Filter issues by setting data and time ranges (there you can set \>10d for Certain Statuses)
4. Choose necessary statuses to show. (in my project i don't have Submitted, "Section Review" instead of that i've selected "On Review", "Ready for Testing", "Testing")

**![?????? ?????? 2024-05-14 ? 13.17.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/323570i766D99D1BA93B87C/image-size/large?v=v2&px=999 "?????? ?????? 2024-05-14 ? 13.17.41.png")**

**The Total column** on the grid summarizes all time in statuses in which issues were during a particular period.

For more in-depth data analysis, you can create reports [as pivots](https://saasjet.atlassian.net/wiki/spaces/TIS/pages/1073348617/Reporting+Page+Settings+Pivot+Table+View). For example, you can look at the percentage of time spent in different statuses.

![Frame 1034.png](https://community.atlassian.com/t5/image/serverpage/image-id/312756iAB0C216F1E76E244/image-size/large?v=v2&px=999 "Frame 1034.png")

[Dashboards gadgets](https://saasjet.atlassian.net/wiki/spaces/TIS/pages/147718151/Dashboard+Gadget+-+Time+in+Status+for+Jira) feature will keep your finger on the pulse and track team productivity in real-time.

![Frame 1028.png](https://community.atlassian.com/t5/image/serverpage/image-id/312757i0298B17A897CA5A5/image-size/large?v=v2&px=999 "Frame 1028.png")

And also you can create a custom field to see Time in Status directly on the board and ticket.  

![?????? ?????? 2023-12-14 ? 16.54.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/296822i053726BE7061276B/image-dimensions/436x218?v=v2 "?????? ?????? 2023-12-14 ? 16.54.48.png") ![?????? ?????? 2023-12-14 ? 16.55.09.png](https://community.atlassian.com/t5/image/serverpage/image-id/296823i3CD68276D3EEC651/image-dimensions/115x99?v=v2 "?????? ?????? 2023-12-14 ? 16.55.09.png")  

Add-on has [30-day free trial](https://marketplace.atlassian.com/apps/1219732/time-in-status-for-jira-cloud?hosting=cloud&tab=overview&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_Time-in-status-custom-fields_20240610), free up to the 10 users and developed by my team.

I hope you find this helpful ?


author: Hannes Obweger - JXL for Jira
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455)

welcome to the community!

As you can see from the previous answers, this is an area where many Jira users rely on apps from the Atlassian Marketplace to fulfil their status time reporting needs.

If a Marketplace app is an option for you, I think you might like the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2721982).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields - including all JSM-specific fields - much like you'd do in e.g. Excel or Google Sheets. It also comes with a long list of so-called *history columns* that aren't natively available, including *time in \[status\]* , *time between \[status\] and \[status\]* , *time with \[assignee\], time with \[assignee\] in \[status\]*, and many, many more.

This is how it looks in action:

![time-in-status-v2.gif](https://community.atlassian.com/t5/image/serverpage/image-id/325966i76744230B5CC2F10/image-size/large?v=v2&px=999 "time-in-status-v2.gif")

As you can see above, you can easily sort and filter by your history columns, and also use them across JXL's advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*. With these, you should be able to solve your exact use case in just a couple of clicks.

You may already know that you can trial ++any++ app for free for 1 month, so if an app is an option for you, perhaps try a few and see which one works best for you and your team!

Any questions just let me know,

Best,

Hannes


author: Amay Purohit_RVS
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455)

You can use Jira Rest API's to build your own custom solution and track time spent by your assignees for overall issue cycle. Or for a readymade solution, a mktplace app can help here. 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 in hours/days to determine , how much time the issue spent with each status in the complete lifecycle of the issue. You can also group your statuses to determine the cycle times.

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

[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/328842i5C76A416C8F1A9AC/image-size/large?v=v2&px=999 "TIS-1.png")


author: Mehmet A _Bloompeak_
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455)

Jira doesn't have a built-in solution for time in status info. 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.

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).**

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 further details, you can have a look at [Status Time Reports How to Videos](https://www.youtube.com/playlist?list=PLVHoaAkoFPJnG9nLkzcxG0P00ndQgimDs) and [schedule a demo](https://bloompeak.io/schedule-a-call) with us.

++App Features:++  
* 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).

Hope it helps.


author: Gizem G?k?e _OBSS_
body: Hello [@Eran Roiter](/t5/user/viewprofilepage/user-id/5289455) ,

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. ![Status Duration Report in Detail.png](https://community.atlassian.com/t5/image/serverpage/image-id/313491i412755624E431CFB/image-dimensions/538x277?v=v2 "Status Duration Report in Detail.png")

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 *epic*or average resolution time per sprint, week, month, issue type, 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.

![Group By Created Month.png](https://community.atlassian.com/t5/image/serverpage/image-id/313492iD183806A3D4BD05C/image-dimensions/500x169?v=v2 "Group By Created Month.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. And the app has a **REST****API** so you can get the reports from Jira UI or via REST. Also you can export the reports in to various formats easily.

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


Tags: addon-time-in-status-report

cloud

jira-work-management-cloud