How to write a JQL to know the exact day an issue was in a specific status

Katryn Padrón April 22, 2021

Hi Community, 

 

I was wondering if any of you know how to write a JQL query to know the exact day an issue was in a specific status?

 

Important: not between one status to another, just when the issue was in X status.

 

Thank you  

5 answers

3 accepted

2 votes
Answer accepted
Mariana_Pryshliak_Saasjet
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 23, 2021

Hello @Katryn Padrón 

I guess you can't do that without a third-party add-on. So as an alternative, you can try Time in Status for Jira Cloud developed by SaaSJet.

It generates 7 types of status reports, including a Time in Status report that shows how long an issue has been spent in each status(To do, In progress, On hold, Done, etc). Also, you can export it as XLSX or CSV files.

tisreport.png

If you need a date when a status has changed, you can choose a Status Entrance Date report that shows a date when an issue has entered each of the statuses.

statusentrancedate.png

Hope this is what you're looking for:)

Regards, Mariana

1 vote
Answer accepted
Bloompeak Support
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 25, 2021

Hi @Katryn Padrón ,

As an alternative, you can try Status Time app developed by our team. It provides reports on how much time passed in each status as well as status entry dates and status transition count. The reports are based on history of issues and you can trim the history range.

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. It has various other reports like assignee time, status entry dates, average/sum reports(eg. average in progress time per project). And all these are available as gadgets on the dashboard too.

Here is the online demo link, you can see it in action and try.

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

Katryn Padrón April 27, 2021

Thanks, @Bloompeak Support this is just what I need!

Like Bloompeak Support likes this
0 votes
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.
April 22, 2021

Hi @Katryn Padrón  -- Welcome to the Atlassian Community!

The short answer is, no...not with out-of-the-box Jira JQL.  There may be marketplace JQL add-ons for purchase that support this type of query.

What problem are you trying to solve, and why?  Knowing that may provide the community with some context to give you ideas... For example:

  • Is this a one time question for one issue?  If so, you could look at the issue history.
  • Is this a regularly need for a specific status?  Why?  Consider using automation to help detect when this occurs and save the date/time.
  • etc.


Best regards,

Bill

Katryn Padrón April 22, 2021

Hi Bill, thanks for responding!!!

Yes, actually we need this "status change date" because with it we can calculate very important and specific team KPI's !!!  😬

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.
April 22, 2021

Thanks for clarifying!  Yes, we do something similar with custom fields and automation to do some cycle time measures, Age of WIP, and stuff like that.  You could investigate that approach or look into marketplace add-ons.

If you need to know something higher level, such as when something moved into start of work, there are a couple of fields that may interest you:

  • statusCategory summarizes the status values into: To Do, In Progress, and Done.  It reflects the category of the current status.
  • statusCategoryChangedDate is the date/time of the last change to statusCategory

I recommend noting your team KPIs, how you could measure them based on Jira information, and then decide an approach to capture the measure.

Like Trudy Claspill likes this
0 votes
Katryn Padrón April 23, 2021

Thank you very much guys, all your answers are very helpful! 

0 votes
Emre Toptancı _OBSS_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
April 23, 2021

Hello @Katryn Padrón ,

For an automated solution that offers great flexibility and details, our team at OBSS built Time in Status app for this exact need. It is available for Jira Server, Cloud and Data Center.

Time in Status allows you to see how much time each issue spent on each status or assigned to each assignee. You can also combine statuses into consolidated columns to see metrics like Ticket Age, Cycle Time or Lead Time

You can calculate averages and sums of those durations grouped by issue fields you select. (For example see the total InProgress time per Epic, or average Resolution Time per issuetype).

It also has date reports that show you the first and last transition dates for statuses.

tisCloud_StatusDuration_LeadTime_with Estimates.png   tisCloud_FirstTransitionToStatusDate_Report.png

tisCloud_StatusDuration_LeadTime_Average.png   tisCloud_StatusDuration_LeadTime_Chart.png

Time in Status can display its reports on its own reporting page, issue view pages and dashboard gadgets.

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 works with both Company Managed and Team Managed (next-gen) projects.

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 issuetype.)
  • 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 and on issue view pages.

https://marketplace.atlassian.com/1211756

EmreT

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events