Forums

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

JQL to show issues which have a particular status change within a particular amount of time

Matt Melvin March 3, 2022

The workflow for our ticket for this question is:

Open to Acknowledged or Open to Waiting for Information or Waiting for Information to Acknowledged

I need to define tickets which have successfully moved from Open to Acknowledged or Waiting for Information to Acknowledged with 24 hours

Anyone have some idea how to do this?

Many Thanks,

Matt

6 answers

2 accepted

1 vote
Answer accepted
Bill Sheboy
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 3, 2022

Hi @Matt Melvin 

If I understand your use case correctly, you can get part of that answer with the CHANGED operator, but not the within 24 hours part: https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/#Advancedsearchingoperatorsreference-CHANGEDCHANGED

The reason is that JQL is not a SQL and so you cannot perform comparisons between two different fields with out-of-the-box features. 

There are marketplace addons to enhance JQL that may allow this.  Other work-arounds would be to use the REST API to pull the changelogs for reporting in an external tool, or to use automation to record the date/time of the transitions and perform the math in a rule for reporting.

Kind regards,
Bill

Matt Melvin March 6, 2022

Thanks for the feedback, Bill.

0 votes
Answer accepted
Alex
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 3, 2022

Hi @Matt Melvin 

 

I am afraid you cannot get this result using JQL with out-of-the-box features. There are other similar questions in the community:

These are referencing Time in Status for Jira.

I hope it helps,

Cheers,

Alex

Matt Melvin March 6, 2022

Thanks for the feedback, Alex.

2 votes
Karolina Wons_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 7, 2022

Hello @Matt Melvin

As an alternative, you can try a third-party add-on Time in Status for Jira Cloud developed by my SaaSJet team. It generates7 types of status time reports.

A Status Entrance Date report could be helpful in your case. It shows the date an issue has entered each of the statuses. Just choose a necessary period and get all data.

statusentrancedatereport.png

Hope it helps.

2 votes
Yuliia_Borivets__SaaSJet_
Atlassian Partner
March 7, 2022

Hi @Matt Melvin 

If you're on Cloud, check out the Issue History for Jira app from my team. It might be helpful in case you'd like to track a history of status changes for some date range. 

Here you can:

  • Filter issues by project, sprint, assignee, etc.
  • Set any given or custom period
  • Add any standard or custom field as a grid column (e.g. assignee, status, sprint)

Status change history.png

Let me know if you have any questions.

0 votes
Emre Toptancı _OBSS_
Atlassian Partner
March 7, 2022

Hello @Matt Melvin ,

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

You can also filter issues based on status durations:

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. You can define filters on these columns as well.

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 week, month, issuetype, request type, etc. The ability to group by parts of dates (year, month, week, day, hour) 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
Rahul_RVS
Atlassian Partner
March 6, 2022

Hi @Matt Melvin 

If you fine with a marketplace app, you can try out our add-on to get this data

In our app, you can group your statuses and then filter for issues whose "Grouped status" < 24hrs.
I my screen shot below I have created a grouped status "Lead Time" and then filtered for issues with "lead time " < 24 hrs.
The main features of the app are as below
  • Multiple Time in Status Reports. Excel Export available for all status reports.
    • Time in Status
    • Time with Assignee
    • Time in Status with Assignee
    • Time with Assignee per Status
    • Status/Assignee Count
    • Multiple Transition Reports
    • Avg Time in status reports
    • Status Transition Dates Report
    • Time in Status Per Time Grain
    • Time with Assignee Per Time Grain
  • Status grouping
  • Save your reports
  • CSV Export
  • Multiple chart types
  • Dashboard Gadget

Disclaimer: I work for RVS, the vendor for this app, and I am one of the developers of the app.

 

TIS - Status Duration filter.PNG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events