Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,182
Community Members
 
Community Events
165
Community Groups

Time in Status - to track time spent in a status

Hello. I've been having trouble setting up post functions for a custom field "Time in Status". Basically we want to track the time spent in a status and accumulate it every time it switches. Scenario:

- A transition happens from "Ready for Test" to "In testing"
- During this transition, we want to track how long did the issue stay under the "In Testing" status
- If a transition happens from "In Testing" to anything else, the time tracking stops
- If at any point it transitions back to "In Testing" it starts tracking again.

Which post functions should I use to achieve this?

4 answers

5 votes

Hi @Edgaras Baumila 

To get the time in status data, as an alternative, you can try Time in Status for Jira Cloud. This add-on is developed by my team and is free for using up to 10 users. So you can try it easily.

It generates 7 types of status time reports, including the Time in Status report, which tracks the time in each status of your workflow. 

 tis report.png

You can additionally tracking the Assignee (efforts of each team member) or Average time in status.

I hope you find it helpful. In case you have additional questions, please, let me know. 

Hi @Edgaras Baumila

Welcome to Atlassian Community!

As an alternative, you can try Status Time Reports app developed by our team which is available for Jira Server/Data Center/Cloud. 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 theworking 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. In your case, you can have a look at Time in Status for Each Issue report.

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

Note: If you are interested in cycle and lead time, you can have a look at the article below.

Cycle Time and Lead Time in Jira: Productivity Measurement with Two Critical Parameters

Hope it helps.

0 votes
Rahul_RVS_Support Marketplace Partner Jun 08, 2022

Hi @Edgaras Baumila 

For a ready made solution, 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

Hello @Edgaras Baumila

The raw data you need for this report is available in each issue's history but Jira does not give this to you as a ready-to-use report.

Measuring this manually is expensive to build/maintain (needs to be put into every workflow), very hard to scale (a separate custom field for each measurement), and does not work for past issues.

I suggest you use a marketplace app built for this purpose.

 

If you are OK with using a marketplace app for this, our team at OBSS built Time in Status for this exact need. It is available for Jira Server, Cloud, and Data Center.  

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, you don't create custom fields and you can get reports on your past issues as well. It supports both Company Managed and Team Managed projects.

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

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

Essentially we are looking for something very minimal without using any plugins. First we want to validate this ideas as a proof of concept before we look into more advanced solutions.

I found that a similar thread was opened here:
https://community.atlassian.com/t5/Jira-Software-questions/Time-spent-for-QA/qaq-p/1627976

However I did not notice the specific post functions I would need to use in order the achieve the desired result.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

68 views 1 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you