Filter status changes by date
Asked by Josu:

I need to know how I can filter the incidents that are in the same state for more than x days, or that have not changed the state for x certain days

-----------

For example.

I want to know how many incidents have been in the "in progress" status for 10 days or whatever date I want to set.


Answers:
author: Kristian Walker _Adaptavist_
body: Hi Josu,

Thank you for your question.

I the native JQL search in Jira you could run a query like**issuetype = Incident and status = "In Progress" and status changed to "In Progress" before -10d**

In this query you can change the -10d to the number of days to check for an you can change the name of the issue type and status as you need.

I hope this helps.

<br />

Regards,

Kristian

comments: author: Josu
body: With that solution, I think it adds all the times it goes to the state I'm trying to filter, which in this case is "waiting for user".

The final idea is the following, which I show you in case you have any other alternative.

I want to make an automation in which if a ticket spends more than 10 days in "waiting for user", it will be automatically closed.

To do this I have to filter that ticket search, which is what I'm asking now. I have found this sentence, if you can tell me if it is also valid:

<br />

status = "waiting for user" AND NOT Status changed after startOfDay(-10)


author: Kristian Walker _Adaptavist_
body: Hi Josu,

That JQL should work but you could also something like **status changed to "Waiting for user" before startOfDay(-10)**

Regards,

Kristian


author: Hannes Obweger - JXL for Jira
body: Hi [@Josu](/t5/user/viewprofilepage/user-id/5430417)

if you're open to solutions from the Atlassian Marketplace, I think you might like the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2610267).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you'd do in e.g. Excel or Google Sheets. It also comes with a number of so-called *history columns* that aren't natively available, including the *time since status change* , *time in \[status\]* , or *time between \[status\] and \[status\]*.

With these, you can build a view like e.g. this in just a couple of clicks:

![status-and-time-since-status-change-filtering.gif](https://community.atlassian.com/t5/image/serverpage/image-id/306835iCC26B355D119B8E6/image-size/large?v=v2&px=999 "status-and-time-since-status-change-filtering.gif")

As you can see above, you can easily sort and filter by all your issue fields and history columns. You can also use them across JXL's advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.

Any questions just let me know,

Best,

Hannes


author: Valeriia_Havrylenko_SaaSJet
body: Hi [@Josu](/t5/user/viewprofilepage/user-id/5430417) ?   
I suggest take a look at article [Jira Status Change Data: The easiest way to display and extract](https://community.atlassian.com/t5/App-Central/Jira-Status-Change-Data-The-easiest-way-to-display-and-extract/ba-p/2391789). There i suggest 2 ways to get status changes by date.   

Also you can get status changes by JQL query:

*status changed from "Open" to "In Progress" during ("YYYY-MM-DD", "YYYY-MM-DD")*

*Replace "YYYY-MM-DD" with the desired start and end dates for your analysis*.

<br />

<br />

And more easiest and enhancedoption is [The Status Entrance Date report](https://saasjet.atlassian.net/wiki/spaces/SAASJET/pages/2277244938/Status+Entrance+Date+report?utm_source=atlassian+community&utm_medium=referral&utm_campaign=Comment_What-is-the-Time-in-Status-in-Jira_20230717) ([Time in Status for Jira add-on](https://marketplace.atlassian.com/apps/1219732?utm_source=Atlassian_Marketplace&utm_medium=referral&utm_campaign=Comment_Filter-status-changes-by-date_20240215)) that shows the date an issue has moved to a particular status.  

With this report you will get dates when the issue has entered each of the statuses on the grid as it's shown below.  

![?????? ?????? 2023-07-17 ? 15.05.31.png](https://community.atlassian.com/t5/image/serverpage/image-id/269304i68946E0B8B5B328A/image-size/large?v=v2&px=999 "?????? ?????? 2023-07-17 ? 15.05.31.png")  

On the chart, it shows the number of tasks that have entered a status on a certain date - *for example, 1 task out of 5 tasks has entered the Progress status for the first time on the 23-rd of May.*

*![?????? ?????? 2023-07-17 ? 15.05.46.png](https://community.atlassian.com/t5/image/serverpage/image-id/269303iC07B352CB32EEDE9/image-size/large?v=v2&px=999 "?????? ?????? 2023-07-17 ? 15.05.46.png")*

Add-on has a [**30-day** free](https://marketplace.atlassian.com/apps/1219732?utm_source=Atlassian_Marketplace&utm_medium=referral&utm_campaign=Comment_Filter-status-changes-by-date_20240215) trial version and **free up to 10 users****.**

Hope it helps ?


author: Gizem G?k?e _OBSS_
body: Update on May 9th, 2024: Time in Status by OBSS was recently rebranded as [Timepiece](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer). It is still the same capable app with the same dedicated team behind it. The answer below mentions the app as "[Time in Status](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer)" but you can find the app in the marketplace as "[Timepiece (formerly Time in Status)](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer)".

Hello [@Josu](/t5/user/viewprofilepage/user-id/5430417) ,

Welcome to the community!

I have a suggestion that will help you achieve your desired results more easily. You can create filters and reports effortlessly by using a third-party application.

If you are open to using an application specifically tailored to your needs, [Time in Status](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer) which is developed by my team at OBSS, is the tool I would highly recommend. It is available for both Jira Cloud, and Data Center.

Time in Status mainly allows you to see how much time each issue spent on each **status** or each **assignee**. As you can easily track the time spent on statuses, you can also easily filter the results.

Here is an example that aligns with your needs.

If you select the **status duration report** for a particular project in [Time in Status](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer) and apply a filter to identify incidents that have been in the 'in progress' status for more than 10 days, you will receive the results within seconds. (Please see the screenshots below)

![Day filter .png](https://community.atlassian.com/t5/image/serverpage/image-id/306613i62AEE63C961F14AA/image-dimensions/245x110?v=v2 "Day filter .png")![status duration 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/306614i2AAF1D9E347ABF34/image-dimensions/507x264?v=v2 "status duration 1.png")

Visit [Time in Status](https://marketplace.atlassian.com/apps/1211756/time-in-status?hosting=cloud&tab=overview&utm_source=community&utm_medium=answer) to explore how our JIRA add-on can revolutionize your metrics measurement process. Enjoy **a 30-day free trial** to experience the full range of features.

Hope it helps,

Gizem


author: Mehmet A _Bloompeak_
body: Hi [@Josu](/t5/user/viewprofilepage/user-id/5430417) ,

Do you only need to see the issues that are in "In Progress" status now and have been in "In Progress" status more than 10 days? If so, the JQL provided by [@Kristian Walker _Adaptavist_](/t5/user/viewprofilepage/user-id/781617) perfectly matches your need.

If you also need to see the issues that are in "Closed" status now but have been "In Progress" status more than 10 days, then you can try [Status Time Reports](https://marketplace.atlassian.com/1221826) 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](http://status-time.bloompeak.io/demo), you can see it in action and try without installing the app. For further details, you can have a look at [Status Time Reports How to Videos.](https://www.youtube.com/playlist?list=PLVHoaAkoFPJnG9nLkzcxG0P00ndQgimDs)

* 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, resolution 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 completely **free** solution, you can try the limited version [Status Time Reports Free](https://marketplace.atlassian.com/apps/1222051).

Hope it helps.


Tags: cloud