Jira Cloud guides

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:

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):

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:

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.

  1. Create a date-time custom field called Status entered and put it on a screen.
  2. Create a rule. When: Work item transitioned. Then: Edit work item, set Status entered to {{now}}.
  3. 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:

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).

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

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