We want to know the time in each status in Jira.
We are using jira DC.
Can you please help with a script to implement time in status in jira using Groovy?
Thanks,
Prasad
Hi @prasad biddika 👋
I guess Time Between Statuses will be an option for you. This add-on, which measures connections in the workflow, through a transition time in specific issues. You can count Cycle and Lead Time by setting start/stop and pause statuses in the configuration manager. To detail the calculation conditions you should select the first/last transition to/from status. This add-on developed by my team.
As an alternative , and if you switching to a cloud version, you can try Time in Status for Jira Cloud. The primary purpose is to help teams gather valuable data about the lifecycle of your issues in Jira. Add-on allows you to measure and visualize the time spent in each status, such as "Open," "In Progress," "In Review," and "Closed," and provide 7 types of reports to help you identify areas for improvement. Add-on also developed by my team.
Add-ons have a 30-day free trial version and free up to 10 users.
Please, let me know if you have any questions
Hope it helps 😌
Valeriia
The add-on provides the time for each status in the issue lifecycle.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @prasad biddika
I know you asked for a script solution but let me recommend an alternative since scripts are expensive to build and maintain. Using a ready-to-go marketplace solution will be cheaper and more comprehensive.
Our team at OBSS built Time in Status for this. 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.
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 customer 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.
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.
https://marketplace.atlassian.com/apps/1211756/
EmreT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
If you are looking for a completely free solution, you can try the limited version Status Time Free.
Hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think this script could be a good starting point
https://library.adaptavist.com/entity/count-the-time-an-issue-was-in-a-particular-status
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thanks for the the answer I checked in console it throwing the following error in the below mentioned line
groovy.lang.MissingPropertyException: No such property: issue for class: Script47
at Script47.run(Script47.groovy:11)
def changeItems = changeHistoryManager.getChangeItemsForField(issue, "status")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.