Forums

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

Script for Time in Status (Jira)

Brandon Ivey March 12, 2023

Hello everyone, I would like to see if anyone knows a script that I can plug in so I can find out the exact time in status for an issue. Important note, we do not have access to script runner as of right now. However, we have used a script to calculate story points on a JQL search and this work for us! So basically this story points script functions when you plug in a JQL to the search and it will calculate a total amount of story points from the JQL and it will show you how many issues do not have story points.

I want to do something similar to this. What I am looking for is to save a script in my bookmark bar (like the story point example) and insert an issue link to the search (or a JQL to the search), run the script and it tell me how long an issue (or group of issues from the JQL) they are in a status. Note: if the group of issues isn't possible, that's fine I am happy to copy and paste one issue link to the search bar and have it return the time in status for me.

Attached is a picture of what the story points script looks like. When I click on it in my bookmarks, it gives me a prompt that drops down and I paste the JQL in there and within 15 seconds it returns the result.

5 answers

Suggest an answer

Log in or Sign up to answer
1 vote
Mariana_Pryshliak_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.
March 14, 2023

Hello @Brandon Ivey 

For such an aim, you can try Time in Status for Jira Cloud, which tracks time in status data and gnerate a report based on this data.

You can present time in status data directly on the Jira card layout without entering the add-on) - what is very convenient and time-consuming.

Also, you can discover an article about the Time in Status and how to track it.

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

Hope it helps

0 votes
Madhu_RVS
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.
March 14, 2023

Hi @Brandon Ivey 

For a readymade solution, If you would be interested in a mktplace app, you can try out our plugin,

Time in Status Reports 

The add-on provides the time in status report for each issue in your filter. There are multiple other reports which help in tracking the complete life cycle of the issues.

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

TIS.PNG

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
March 13, 2023

Hello @Brandon Ivey 

In the script route, you will need to build separate scripts for each metric and as the number gets higher, it is a nightmare to maintain them. 

I don't have a script but I do have an app recommendation.

 

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. The app also allows the user to filter and sort issues based on these times.

tisCloud_StatusDuration_LeadTime_with Estimates.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. Filter and Sort options are also available for Consolidated Columns.

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. (Filter and Sort options are even available here.)

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

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
March 13, 2023

Hi @Brandon Ivey

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.

  • 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
Brandon Ivey March 12, 2023

Screenshot Atlassian Comunity.jpg

TAGS
AUG Leaders

Atlassian Community Events