Forums

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

live time spent at an issue

mahmoud burhamy November 1, 2022

Hello
i am trying to write a query to help monitor outlier tasks that spent  more than 2h in a specific status and has note been moved yet to another status 

here i have jobs in status "in progress" 
i have the time stamp of the movement from the previous status 

i need to create a query for example ... how many jobs have been setting there in progress for more than 2h 

Screenshot_4.png

6 answers

1 vote
Lucy Warner_SaaSJet
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.
November 2, 2022

Hello @mahmoud burhamy 

The most convenient way (as for me) to track time an issue has spent in status is to use the add-on from the Atlassian Markteplace.

For such an aim, you can try Time in Status for Jira Cloud which generates 7 types of status reports including a Time in Status one. I huess, it will help.

TIS.png

If you need to get the total time spent to solve the issue, you can monitor it with Cycle time easily.

This add-on is developed by my team. Please, let me know if you have any questions.

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
November 7, 2022

Hi @mahmoud burhamy

As an alternative, 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.

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

  • 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, 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 free solution, you can try the limited version Status Time Free.

Hope it helps.

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
November 2, 2022

Hi @mahmoud burhamy

if you're open to solutions from the Marketplace, here's an app that should solve your use case very easily: JXL for Jira.

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 a number of "smart fields" that aren't otherwise available. One of these "smart fields" is "time since status change", also know as "time in status". You can simply add this field to your table, and then, e.g., perform a simple filter operation. This is how this looks in action:

time-in-status.gif

It's worth noting that JXL can do much more than that: From bulk issue editing to inline issue creation, to support for issue hierarchies, grouping, sum-ups, and conditional formatting. Disclaimer: I work on JXL :)

Any questions just let me know,

Best,

Hannes

0 votes
Rahul_RVS
Atlassian Partner
November 2, 2022

Hi @mahmoud burhamy 

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

Time in Status Reports 

The add-on provides the time in each status for the entire lifecycle of the issue. You can also filter for issues which are spending more time in a particular status.

Disclaimer : I am part of the RVS team who developed this plugin

TIS.PNG

TIs - Status Suration.PNG

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
November 2, 2022

Hello @mahmoud burhamy ,

I am sorry but you can't get this data with a simple JQL query. Jira does not offer this out-of-the-box, but the data needed for this report is available in each issue's history. 

If you are OK with using a marketplace app for this, our team at OBSS built Timepiece - Time in Status for Jira 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     

It is also possible to find the outliers using the Filter function.

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

Timepiece - Time in Status for Jira

EmreT

0 votes
Kai Becker
Community Champion
November 1, 2022

Hi Mahmoud,

what version of Jira are you using? What is the deployment? What should haben, wenn die timelimit is breached?

mahmoud burhamy November 1, 2022

i really do not know the version ... can you tell me how to know the version ?

i am the head of three teams  lets call them A B C , A production is B demand and B production is C demand 

so the tasks are moving like that A->B->C 
each ticket spends an average time of 1 or 2 h at each stage 

each team needs to monitor the time of the tickets at their stage 
so if each team has about 20 people working and each member has a ticket at that stage i need them to filter all the 20 tickets and only show the ones that have exceeded specific duration lets say 2h duration 

nothing should happen when the time is breached ... only that filter will show these results then the leader will contact the member and see why is it taking so long 

so it is basically a monitor method to control the time outliers 

mahmoud burhamy November 1, 2022

project = mtp AND status = "in progress" and "in progress" > '1h'

i am trying to add a duration after the status ...  but nothing is showing 

Kai Becker
Community Champion
November 1, 2022

Hi @mahmoud burhamy

do you use Jira Cloud or a self hosted Server/DC environment?

mahmoud burhamy November 1, 2022

i think it is a server 
this is how my board looks like 
Screenshot_6.jpg

Kai Becker
Community Champion
November 1, 2022

considering your current setup, there is nothing out of the box, that will give you this information. 

There are several ways though to solve your problem. The easiest would be a 3rd party app you have to install. There are several ones on the marketplace, this one for example is free: https://marketplace.atlassian.com/apps/1222051/status-time-free?hosting=server&tab=overview

The alternative would require some scripting and an app to run these scripts, preferred one would be Scriptrunner. An example where to start can be found here.

Sorry that there is no easy way..

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events