How to See How Long a Jira Work Item Has Been in a Status (JQL and Automation, No App)
Short answer: Jira Cloud has no built-in "time in status" field or report we could use (see the FAQ for the one field we found). Atlassian lists a report for it as an open request (JRACLOUD-90221, 243 votes, and JRACLOUD-63103, 193 votes, both Gathering Interest on November 29, 2026). You can still answer the three usual questions with JQL, the REST API and Automation, no app needed:
- How long has it been in its current status? Sections 1 and 2 (JQL).
- How long did it spend in each status? Section 3 (a short script on the changelog).
- Tell me when it is stuck. Sections 4 and 5 (Automation).
1. JQL: stuck in the current status, with statusCategoryChangedDate
status = "In Progress" AND statusCategoryChangedDate <= -7d ORDER BY statusCategoryChangedDate ASC
This lists work items that are in In Progress and entered that status category at least seven days ago, oldest first. Atlassian documents the field and its operators (=, !=, >, >=, <, <=, CHANGED) in its knowledge base. What we tested on November 29, 2026 (company-managed project, six work items, minute-sized windows so the results came back fast):
- A work item that was never moved has a status category date within about 0.3 seconds of its creation time (created 07:55:36.121, date 07:55:36.405), so it shows up in
statusCategoryChangedDate <= -1monce it is old enough. - Moving a work item between two statuses in the same category did not change the date. We moved one from Backlog to Selected for Development (both To Do): created 07:55:34.616, status change recorded 07:55:37.145, date still 07:55:34.895. If your workflow has several statuses in one category, for example In Progress and In Review, this field overstates the time in the current status.
- A move that crosses categories resets it. A work item that went In Progress, back to Backlog, then In Progress again had a date equal to the second entry (07:56:44.968), not the first.
ORDER BY statusCategoryChangedDate ASCreturned the five work items in date order, oldest first.- The same field and a status move worked in a team-managed project too.
2. JQL: stuck in an exact status, with status CHANGED
status = "In Progress" AND created <= -7d AND NOT status CHANGED AFTER -7d
Read it as: in In Progress, older than seven days, and with no status change in the last seven days. CHANGED accepts AFTER, BEFORE, BY, DURING, ON, FROM and TO, and works for status among a few other fields (Atlassian: JQL operators). Two traps we reproduced:
- Re-entry.
status = "In Progress" AND status CHANGED TO "In Progress" BEFORE -1mreturned a work item that had re-entered In Progress 12 seconds earlier, because its first entry was 169 seconds old. TheNOT status CHANGED AFTERform andstatusCategoryChangedDateboth left it out. - New work items. Creation is not a status change.
status = Backlog AND NOT status CHANGED AFTER -1mreturned a work item created seconds earlier; addingcreated <= -1mremoved it.
Minute-scale caution. We tested in minutes because waiting days is slow. At that scale the history clauses and the date field did not flip at the same moment. For one work item moved at 0 seconds, status CHANGED AFTER -1m stopped matching at about 30 seconds, status CHANGED BEFORE -1m started matching at about 100 seconds, and statusCategoryChangedDate <= -1m started at about 60 seconds (we polled every 8 seconds). The gap is under two minutes, so it does not matter for windows of days, but do not test your queries with -1m and expect clean boundaries. We did not test day-sized windows.
3. Exact time in each status: read the changelog
JQL can filter, but it cannot add up durations. The changelog can: every status change is recorded with a timestamp, so the time in a status is the gap between the move in and the move out. This script (Python 3, standard library only) reads GET /rest/api/3/issue/KEY/changelog page by page, treats creation as the start of the first status, and counts the current status up to now. It needs your site URL, your email and an Atlassian API token for your account.
#!/usr/bin/env python3
"""Time in status for one Jira Cloud work item, from its changelog.
Usage: JIRA_SITE=https://yoursite.atlassian.net JIRA_EMAIL=you@example.com JIRA_TOKEN=... python3 time_in_status.py PROJ-123
"""
import base64, json, os, sys, urllib.request
from datetime import datetime, timezone
site = os.environ["JIRA_SITE"].rstrip("/")
auth = base64.b64encode(f"{os.environ['JIRA_EMAIL']}:{os.environ['JIRA_TOKEN']}".encode()).decode()
def get(path):
req = urllib.request.Request(site + path, headers={"Authorization": "Basic " + auth, "Accept": "application/json"})
with urllib.request.urlopen(req) as r:
return json.load(r)
def ts(s): # "2026-11-29T07:55:36.689-0500"
return datetime.strptime(s, "%Y-%m-%dT%H:%M:%S.%f%z")
key = sys.argv[1]
issue = get(f"/rest/api/3/issue/{key}?fields=created,status")
created = ts(issue["fields"]["created"])
current = issue["fields"]["status"]["name"]
# Collect every status change, oldest first (the changelog endpoint is paged).
moves, start = [], 0
while True:
page = get(f"/rest/api/3/issue/{key}/changelog?startAt={start}&maxResults=100")
for h in page["values"]:
for item in h["items"]:
if item["field"] == "status":
moves.append((ts(h["created"]), item["fromString"], item["toString"]))
start += len(page["values"])
if page.get("isLast", True) or not page["values"]:
break
moves.sort()
# Walk the timeline: the first status runs from creation to the first move.
spans, since = [], created
status = moves[0][1] if moves else current
for when, frm, to in moves:
spans.append((status, since, when))
status, since = to, when
spans.append((status, since, datetime.now(timezone.utc))) # the current status is still running
totals, visits = {}, {}
for name, a, b in spans:
totals[name] = totals.get(name, 0) + (b - a).total_seconds()
visits[name] = visits.get(name, 0) + 1
def fmt(sec):
sec = int(sec); d, r = divmod(sec, 86400); h, r = divmod(r, 3600); m, s = divmod(r, 60)
return f"{d}d {h}h {m}m {s}s"
print(f"{key} is now in: {current}")
for name, a, b in spans:
print(f" {name:<26} {a.astimezone():%H:%M:%S} -> {b.astimezone():%H:%M:%S} {fmt((b - a).total_seconds())}")
print("Totals per status:")
for name in totals:
print(f" {name:<26} {fmt(totals[name])} ({visits[name]} stay{'s' if visits[name] != 1 else ''})")
Output for a work item that went Backlog, In Progress, Backlog, In Progress (we moved it in seconds so we could check the arithmetic against the history timestamps):
LWT-28 is now in: In Progress
Backlog 07:55:35 -> 07:55:37 0d 0h 0m 2s
In Progress 07:55:37 -> 07:55:42 0d 0h 0m 4s
Backlog 07:55:42 -> 07:56:44 0d 0h 1m 2s
In Progress 07:56:44 -> 08:06:03 0d 0h 9m 18s
Totals per status:
Backlog 0d 0h 1m 5s (2 stays)
In Progress 0d 0h 9m 23s (2 stays)
Pasting the totals into a spreadsheet gives you a time-in-status table. The script counts wall-clock time and does not skip nights or weekends.
4. Automation: stamp the date every time the status changes
To search and sort by "days in the current status" with plain JQL, keep your own date field up to date.
- Create a date-time custom field called Status entered and put it on a screen.
- Create a rule. When: Work item transitioned. Then: Edit work item, set Status entered to
{{now}}. - Search:
status = "In Progress" AND "Status entered" <= -7d. Add the field as a column to sort by it.
We built this rule with the Automation public API and ran it on four transitions across two work items. Results:
- The field was set on every transition, and
"Status entered" <= -1mand>= -1msplit a work item correctly as it aged. - The value is stored to the minute. A transition at 08:02:51 stored 08:02:00. Fine for days, too coarse for seconds.
- Our field did not come back from the REST issue endpoint until we added it to a screen, although the rule had already set it. Put the field on a screen if you read it through the API.
- Work items that had moved before the rule existed stayed empty:
"Status entered" is EMPTYreturned all five of ours. Each fills in at its next transition. - Time in the status that was just left. Put an Add comment (or any other) action before the edit and read the old value:
{{issue.customfield_12345.diff(now).minutes}}(replace 12345 with your field's id; ours was a different number) returned 1 for a work item that had been in its status about 65 seconds.a.diff(b)is b minus a:issue.created.diff(now).minutesreturned 1 andnow.diff(issue.created).minutesreturned -1. We only tested.minutes. - We tried
{{fromStatus.name}},{{toStatus.name}}and{{transition.from_status}}in a comment on this trigger and they rendered empty, so this rule does not use them.{{issue.status.name}}worked. {{issue.statuscategorychangedate}}rendered the date as text;.diff(now)on it rendered empty, so use your own field for date math.
From December 3, 2026 Automation usage is counted in steps: the trigger is one step and each action is one more, so this rule uses two steps per transition (Atlassian: how automation usage is calculated).
5. Automation: flag work items that are stuck
Add a second rule with a Scheduled trigger that runs the JQL for you. Atlassian describes the trigger as running at a fixed rate or on a cron schedule, with an optional JQL so that the actions run on the work items it returns (Atlassian: Jira automation triggers).
- JQL:
status = "In Progress" AND "Status entered" <= -3d AND (labels is EMPTY OR labels != stuck-in-status). Jira's!=skips work items that have no labels, so theis EMPTYhalf matters (we tested both forms). - Actions: add the label
stuck-in-status, then add a comment such asStuck in {{issue.status.name}}.
We ran a version of this on a five-minute cron schedule, scoped to one work item and using minutes in place of days. At its first run after the work item crossed the threshold, the rule added the label and the comment; after that the label took the work item out of the JQL (we checked that the query returned nothing for it), which is what stops a later run from commenting again. We deleted the rule before a second scheduled run, so we did not watch that happen. Without a label or similar marker, expect a comment on every run. Atlassian's knowledge base explains that with the option Only include issues that have changed since the last time this rule executed switched on, a work item the rule has already picked up is not picked up again until someone or something edits it, which is the opposite of what a stuck-item rule needs, so leave it off (Atlassian KB). We ran our rule with that option off and did not test it switched on.
A related question: time since the last comment
Status age is about workflow moves. If you want "no reply in N days" instead, see JQL: issues with no comment in X days. If you want that as a ready-made field, Loomwise makes Comment Snapshot for Jira (disclosed below); the guide above works without it.
FAQ
Does Jira Cloud have a built-in time in status report? Atlassian tracks it as an open request: JRACLOUD-90221 (243 votes, Gathering Interest on November 29, 2026) and JRACLOUD-63103 (193 votes). On our test site the only field with a similar name, [CHART] Time in Status, stayed empty on every work item we moved, so the methods in this guide do not rely on it.
What is the difference between statusCategoryChangedDate and status CHANGED? statusCategoryChangedDate moves only when the status category changes (To Do, In Progress, Done). status CHANGED looks at every status change, including moves between two statuses in the same category.
Why does status CHANGED TO "In Progress" BEFORE -7d return work items that moved recently? BEFORE matches any earlier change. A work item that entered In Progress, went back, and re-entered yesterday still has an old entry. Use NOT status CHANGED AFTER -7d together with status = "In Progress" instead.
Can I get time in status in business hours? Not with these methods. The JQL clauses, the changelog script and the Automation field all use wall-clock time.
Why does a new work item show up in my stuck query? A work item that was created in a status and never moved has no status change in its history. Add created <= -7d, or use statusCategoryChangedDate, which starts at creation.
Related guides
- JQL: Find Jira Issues With No Comment in X Days (Last Comment Date)
- How to Auto-Close Stale Jira Issues With No Recent Activity
- JQL: Find Jira Issues Where Someone Outside Your Team Commented Last
- Automation smart values for comments
- All Jira Cloud guides
Disclosure: Loomwise makes Comment Snapshot for Jira, mentioned once above, and wrote this guide. Not affiliated with Atlassian. Queries, the script and the rules were tested on a Jira Cloud site on November 29, 2026 (one company-managed project and one team-managed project); vote counts are from jira.atlassian.com the same day. Last checked November 2026; Jira menus and features change, so verify in your site. Contact: hello@loomwise.app