Forums

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

How to track how long an issue has been in from one specific status to another specific status?

SHEHZADALI ISMAILY
Contributor
October 20, 2021

Example:

Once an issue transitions into "In Progress" from "To Do" and has 3 story points assigned to it, let me know if takes more than 4 days to make it into a status of "DONE" from "In Progress".

Is there a JQL Query that could work for this example?

5 answers

3 votes
Julia Shcherbyna _SaaSJet_
Atlassian Partner
October 26, 2021

Hi @SHEHZADALI ISMAILY 

As an alternative, you can try Time in Status for Jira Cloud. It's developed by my team specifically for easy tracking of how long an issue has been in from one specific status to another specific status and analysis of critical moments.

In addition to the Time in Status report, you can also analyze:

  • Assignee Time
  • Average Time
  • Status Entrance Date
  • Time in Status per Date
  • Status Count
  • Transition Count

Or use a Pivot Table to customize your report.

Here is an online demo link, you can try an add-on without installing it.

image2020-11-27_1-24-9.png

Hope it helps.

Regard

1 vote
Rahul_RVS
Atlassian Partner
October 20, 2021

Hi @SHEHZADALI ISMAILY 

If you would be interested in a readymade solution to get this data, you can try out our plugin,

Time in Status Reports 

The add-on provides the time in each status for the entire lifecycle of the issue and you can filter by issue type as well. You can also combine your statuses to define your lead/cycle/resolution time and also extract the transitions history of the issues. The main features of the app are as below

  • More than 8 types of 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 reports
  • Status grouping
  • Save your reports
  • CSV Export
  • Multiple chart types

 

TIS.PNG

0 votes
amitajmera777 April 23, 2025

@SHEHZADALI ISMAILY - If you're trying to figure out how long issues stay in each status, it can be tricky in native Jira. I had the same challenge and built a small app called Workflow Aging that gives this visibility — might help you spot bottlenecks quickly.

 

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
October 21, 2021

Hello @SHEHZADALI ISMAILY

JQL gives you the option to filter by comparing specific dates on issues to current (or a given) date but you can't compare dates on issues with each other.

That means (using JQL) you can ask to get issues that were updated less than 7 days before today but you can't get issues that were updated less than 7 days after the creation date.

updated < -7d
// this works

updated < created +7d
// this doesn't work

The same goes for status transitions. You can ask for issues that were transitioned to a status in a given time period but there is no way to get issues that were transitioned to a status less than x days after the transition to an earlier status.

status changed to 'In Progress' AFTER -7d
//this works

status changed to 'In Progress' AFTER "Open"+7d
//No such feature 

If you need to see the time spent on a status, you might try to make that measurement manually. You can create a custom field to hold the value for that measurement and use workflow functions to populate those fields throughout your workflow. This will require a separate configuration for each measurement you want to make. There are similar questions in the community that explain this process. I won't get into details here. I believe it is hard to build and maintain, so I don't recommend it.

The next alternative would be to do custom software development to get this report. The needed data is available in each issue's history. You can get that data via REST API and do your calculation.

The final alternative would be to use a marketplace plugin for that. If you are OK with that, our team at OBSS built Time in Status app for this exact need and more. It is available for Jira Server, Cloud, and Data Center.

Time in Status allows you to get detailed analytics on how much time each issue spent on each status and each assignee. 

tisCloud_StatusDuration_LeadTime_with Estimates.png

 

tisCloud_AssigneeDuration.png

You can calculate averages and sums of those durations grouped by the issue fields you select. For example average resolution time per week, month, issuetype etc.

 

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.

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.

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

Timepiece - Time in Status for Jira

EmreT

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
October 20, 2021

Hi @SHEHZADALI ISMAILY ,

Unfortunately, what you are looking for is not possible with the built-in functionalities of JQL. Because JQL can not make calculations and you need status time calculation.

For this exact need we developed Status Time Jira app. It provides reports on how much time passed in each status. By grouping statuses you can get cycle time(E.g from in progress status to done status). You can also export the report as CSV and open it in excel.

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. It has various other reports like assignee time, status entry dates, average/sum reports by any field(e.g. average in progress time by project, average cycle time by issue creation month). And all these are available as gadgets on the dashboard too.

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. Hope it helps.

Suggest an answer

Log in or Sign up to answer