Forums

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

How many times an issue has gone into a particular status

Jiten Khanna August 2, 2023

Can someone advise on a jql for "how many times an issue has gone into a particular status"

4 answers

3 votes
Valeriia_Havrylenko_SaaSJet
Atlassian Partner
August 3, 2023

Hello @Jiten Khanna   👋 

For anyone looking for an answer to this question, 

as an alternative , I guess you can try Time in Status for Jira Cloud (developed by my SaaSJet team) with 7 types of status time reports

For your exactly need we have Status Count report or Transition Count report

The Status Count report shows how many times an issue has been in each status.

Status count .png

Chart view of report:
Status count  chart view.png
The Transition Count report shows how many times an issue has moved between all statuses in the workflow.Transition Count report.png

Chart view of report:

Transition Count report Chart view.png

Add-on has 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

3 votes
Mark Segall
Community Champion
August 2, 2023

Hi @Jiten Khanna - Unfortunately, you're not going to get that natively from JQL.  JQL can only provide that an issue has been in a status... Not how many times.

If this is something you wish to track, you may want to consider using a custom numeric field and automation. Here's how it could work for an example scenario where I want to track how many times an issue has transitioned to "In Progress" (my custom field would be called Times In Progress):

  • TRIGGER: Issue Transitioned (To: In Progress)
  • ACTION: Edit Issue (Times In Progress)
    • {{issue.Times In Progress.plus(1)}}

From here, I could do JQL like this to show issues that have transitioned to In Progress more than once:

"Times In Progress" > 1 

I could also add it as a column in a search or use it in a dashboard gadget.

Kian Stack Mumo Systems
Community Champion
August 2, 2023

I believe the plugin Status Time Reports also will allow you to get this information.

Like Mehmet A _Bloompeak_ likes this
Mehmet A _Bloompeak_
Atlassian Partner
August 2, 2023

Thank you @Kian Stack Mumo Systems for recommending Status Time Reports app.

Hi @Jiten Khanna

You can get this information with 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 Status Count And Entry Dates report. Entry date(see In Development, Ready for Testing, In Testing, In Development columns.) is status transition date and status count(see #In Development, #Ready for Testing, #In Testing, #In Development columns) is how many times an issue is entered to this status.

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

For further details, you can have a look at Status Time Reports How to Videos.

If you are looking for a completely  free solution, you can try the limited version Status Time Free.

Hope it helps.

Like Kian Stack Mumo Systems likes this
Jiten Khanna August 3, 2023

Hello @Mark Segall thank you for your inputs, I'll try your suggestion also for the Automation rule is that the only condition/action which is needed, please advise.

Thank you

Like Mark Segall likes this
1 vote
Emre Toptancı _OBSS_
Atlassian Partner
August 3, 2023

Hello @Jiten Khanna

If you are OK with using a marketplace app for this, our team at OBSS built Timepiece - Time in Status for Jira for this. It is available for Jira Server, Cloud, and Data Center.  

Time in Status mainly has several types of time reports (showing how much time each issue spent on each status, assignee, or group) but the app also has Status Count and Transition Count reports. These reports show how many times each status and each transition was used by each issue.

StatusCount.pngTransitionCount.png

For all numeric report types, you can calculate averages and sums of those values grouped by the issue fields you select. Grouping 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 screenshot below shows a trend report sample for durations but you can do the same for status or transition counts)

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

Timepiece - Time in Status for Jira

EmreT

0 votes
RVS_Support
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.
August 3, 2023

Hi @Jiten Khanna 

A mktplace app can help you to get this data.

You can try out our add-on

Time in Status Reports 

The below report show the status count for each issue which will meet your use case.

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

TIS - Count.PNG

Suggest an answer

Log in or Sign up to answer