How do you find issues that stayed in a status for more than 3 days with JQL?
On this page
To find issues that stayed in a status for more than 3 days with JQL, native Jira Cloud only gets you part of the way. It can show issues whose status has not changed recently, but it cannot total the time an issue spent in a status across several visits. With Flexible JQL, issue in timeInStatus("In Review", "3d") does it directly.
This guide separates the two questions people mix up, shows the native workaround and what it misses, gives copyable timeInStatus queries and lists the limits you should know before putting one on a dashboard.
Which question are you actually asking?
“How long has this been in a status?” is two different questions, and the right query depends on which one you mean.
| Question | What it measures | Example need |
|---|---|---|
| How long has the issue been in its current status? | One visit, still going | Reviews waiting for more than 3 days right now |
| How long did the issue spend in a status in total? | Every visit added up, past and present | Work that bounced through Blocked for a week in all |
Native JQL can approximate the first. It has no answer for the second. Atlassian Community threads ask for the second again and again, with titles such as “JQL Query for ‘Total Time in Status’ >10d for Certain Statuses” and “Search Exact Issues which are Staying in a Specific Status for…”; they are listed in Sources.
What can native JQL do for time in status?
Native JQL has a history operator, CHANGED, with predicates such as AFTER and BEFORE, and it works for a limited set of fields that includes status. The workaround that community answers describe is to combine a status filter with a negated CHANGED AFTER clause: the issue is in the status now, and the status did not change in the last 3 days, so the current visit is at least 3 days old.
That gives you a usable list for the first question. It stops working for the second one, for three reasons:
- It only looks at the current visit. An issue that spent 2 days in review, went back to development, and came back for 2 more is never counted as 4 days.
- It cannot find issues that are no longer in the status. “Which issues spent more than 2 days in Blocked last month” is out of reach.
- It cannot express a maximum. “Reviewed in under 4 hours” has no native form.
Check the exact syntax against Atlassian’s JQL documentation before you save a filter; this guide does not show the native query because we did not verify its exact form against the current Atlassian page.
Example Current stay or every visit added up
| Visit to In Review | Length | Counts in the current stay | Counts in timeInStatus total |
|---|---|---|---|
| First visit (returned for changes) | 2 days | no | yes |
| Second visit (still open) | 2 days | yes | yes |
| Total | 4 days | 2 days | 4 days |
How do you find issues in a status for more than N days?
Flexible JQL adds timeInStatus, which reads the issue history and adds up every visit to a status, including the current one.
Signature: timeInStatus(status, [minimum], [maximum], [since], [until], [scope query])
Start with the query for the question in the title:
issue in timeInStatus("In Review", "3d")
That returns issues that spent at least 3 days in In Review in total. Durations are written as 90m, 36h, 3d or 1w 2d. Add a scope query as the last argument so the function reads fewer issues:
issue in timeInStatus("In Review", "3d", "", "", "", "project = ABC AND statusCategory != Done")
The empty strings skip the maximum, since and until. Keep them in place, because the scope query is the sixth argument.
Which queries are worth saving?
These are examples to adapt. Replace the status names and ABC with your own.
| Question | Query |
|---|---|
| Spent 3 days or more in review | issue in timeInStatus("In Review", "3d") |
| Reviewed in under 4 hours in the last 30 days | issue in timeInStatus("In Review", "", "4h", "-30d", "now()") |
| Blocked for between 1 day and 2 weeks | issue in timeInStatus("Blocked", "1d", "2w", "", "", "project = ABC") |
| Stuck in progress for a week, still open | statusCategory != Done AND issue in timeInStatus("In Progress", "1w") |
| Never in Blocked at all | NOT issue in timeInStatus("Blocked") |
The since and until arguments limit the window the visits are counted in. since is included and until is not. They accept dates such as 2026-03-01 (read as UTC), a date and time with an offset such as 2026-03-01T09:00+07:00, relative values such as -7d, and now(). The last row returns issues that were never in the status, because an issue that never visited it is left out of the plain function and picked up by the negation.
What does a worked example look like?
This is an illustration, not real data. A team wants a weekly list of stories that waited too long for review.
- They write
statusCategory != Done AND issue in timeInStatus("In Review", "3d")and save it as a filter named “Review wait: 3 days or more”. - They add the filter to a dashboard as a filter results gadget and sort by last updated.
An issue that sat in review for 2 days, returned for changes and came back for 2 more shows up on the list. The current-visit workaround would have missed it, which is the reason to use a history-based function.
What limits should you know about?
- Calendar time. A day is 24 hours and weekends count. For business days between two dates, use
workingDaysBetween, which follows an administrator’s calendar. - Freshness. Time in an ongoing status keeps growing, and Jira does not re-run a function by itself. Flexible JQL refreshes a result that is in use about every 30 to 45 minutes, so for an issue still sitting in the status the figure can be that far behind. Completed visits are exact. Leave a margin when you filter on a minimum.
- Size. Without a scope query, at most 5,000 candidate issues are read, and a result of more than 1,000 issues is refused with advice to narrow the query. Add a scope query such as
project = ABC AND updated >= -90d. An evaluation stops after 12 seconds with an error that says how far it got. - Status argument. Pass the status name, such as “In Review”, or its id.
- Platform. It is for Jira Cloud only, not Data Center or Server, and it has no AI features.
Doing this with advanced JQL functions for Jira Cloud
Flexible JQL for Jira adds 55 advanced JQL functions and 64 searchable fields to Jira Cloud, including timeInStatus, changedBy and transitionedBy, and a workbench where you can check a query and see how Jira got the answer. The JQL functions reference lists the history functions and their examples, and the limits page explains the 1,000-issue ceiling and the freshness delay. The app is coming soon to the Atlassian Marketplace. For other Jira Cloud apps that add JQL functions, see JQL functions for Jira Cloud: five JQL apps compared, and for a related question about comments, how to find issues not commented on in 30 days.
A printable one-page reference is the Jira JQL functions cheat sheet.
Sources
- Atlassian Community: JQL Query for “Total Time in Status” >10d for Certain Statuses, checked 2026-12-05 (title and search summary only; the page body was not opened)
- Atlassian Community: Search Exact Issues which are Staying in a Specific Status for…, checked 2026-12-05 (title only)
- Atlassian Community: JQL to show tickets in the same status for more than x days, checked 2026-12-05 (title and search summary only)
- Flexible JQL documentation: JQL functions, checked 2026-12-05
- Flexible JQL documentation: Limits, checked 2026-12-05
Frequently asked questions
Does JQL have a time in status function?
Native JQL in Jira Cloud has no function that totals the time an issue spent in a status. It can compare dates and test whether a status changed, but it cannot add up the length of past visits. An app that reads the issue history is needed for that.
How do I find issues that have been In Review for more than 3 days?
With Flexible JQL, use issue in timeInStatus("In Review", "3d"). It returns issues that spent at least 3 days in that status, adding up every visit, including the current one.
Does time in status count working hours?
No. timeInStatus uses calendar time, so a day is 24 hours and weekends count. If you need business days between two dates, there is a separate workingDaysBetween function that uses the administrator's calendar.
Does timeInStatus add up repeated visits to the same status?
Yes. It sums every visit to the status, including the current one, so an issue that went In Review three times for one day each is treated as three days.
How current is the result for an issue that is still in the status?
The time an issue has spent in its current status keeps growing, and Jira does not re-run a function on its own. Flexible JQL refreshes a result that is still in use about every 30 to 45 minutes, so leave a margin when you filter on a minimum.