Forums

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

How can I retrieve Time In Status using jquery?

Hemang Dave June 5, 2023

Hi

I need to extract Time In Status info for a bunch of JIRA queries and I am not very good with using API or Python code so wondering if there is a way to extract this information using JQuery. i.e. Issues > Search for Issues or something to that effect?

 

Thanks

4 answers

1 vote
Valeriia_Havrylenko_SaaSJet
Atlassian Partner
June 6, 2023

Hello @Hemang Dave

I will be glad if my article about JQL helps you. 

Another add-on for you is Time in Status.

You can easily retrive Time in Status data and easily get necessary reports 

Frame 1021.png

As an alternative, try out Time between Statuses add-on. 

 

3 tools to analyze Cycle and Lead Time in the Jira_3.png

You can also set up highlights of values that exceed the permissible level, and in this case, you can receive issue and email notifications.

image 99.png

Add-ons have 30-days trial version, free up to the 10 users and developed by my SaaSJet team.

I hope this helps 😊

0 votes
Rahul_RVS
Atlassian Partner
June 6, 2023

Hi @Hemang Dave 

Welcome to the community !!

Plain JQL will not help for this use case. You can try out OOTB Resolution Time dashboard gadget and Control Chart but they are limited in features.

If you would be interested in a mktplace app for more detailed reporting, you can try our addon:

The add-on provides the time in status duration. And you can combine your statuses to define your own resolution/cycle times etc.

You can also create a Dashboard gadget out of it with graphs too.

Also there are 20+ reports in the app which help to meet a wide range of use cases.

Do try it out.

Disclaimer : I work for RVS, the vendor for this app

TIS.PNG

Hemang Dave June 6, 2023

Thanks @Rahul_RVS 

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
June 6, 2023

Hello @Hemang Dave

JQL queries can't do this because JQL just filters issues. It can't perform calculations on issues or issue histories.

I will point to some built-in Jira solutions and then recommend a marketplace app.

First, you can get such a report using Jira's Resolution Time dashboard gadget

Second, if you are using Jira Software, you can use the Control Chart that is available as part of Kanban Board reports.

Both of these reports are built-in but they offer limited details and limited flexibility.

 

For better flexibility and maximum details, 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 or each assignee

tisCloud_StatusDuration_LeadTime_with Estimates.png    tisCloud_AssigneeDuration.png

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 total in-progress time per Vertical 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 for Jira Cloud.

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

Timepiece - Time in Status for Jira

EmreT

Hemang Dave June 6, 2023
0 votes
Mehmet A _Bloompeak_
Atlassian Partner
June 5, 2023

Hi @Hemang Dave

Welcome to Atlassian Community!

Unfortunately, it is not possible to extract Time in Status info with built-in JQL.

If you prefer to use a marketplace app, 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. For your case, you can have a look at Time in Status for Each Issue report.

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

Hope it helps.

Hemang Dave June 6, 2023

Appreciate the suggestion. Thanks much @Mehmet A _Bloompeak_ 

Like Mehmet A _Bloompeak_ likes this

Suggest an answer

Log in or Sign up to answer