Going Stellar

Home/JQL reference

JQL field

timeSpent in JQL: field syntax and examples

The timeSpent field holds the total time logged on a work item. You compare it with a duration written with w, d, h and m. Use it to find work that has eaten more time than planned, or finished work where nobody logged anything.

Syntax

timeSpent > 5d
timeSpent >= "1d 2h"
timeSpent is EMPTY

Works with

  • Field type: DURATION, no auto-complete. Only available if time tracking has been enabled by your Jira administrator
  • Operators: =, !=, >, >=, <, <=, IS, IS NOT, IN, NOT IN
  • Functions: none
  • Not with: ~, !~, WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED

Examples

timeSpent > 5d

Work that has taken more than five days of logged effort, a first list for a retrospective.

Run on Jira Cloud on .

timeSpent is EMPTY AND status = Done AND project = WEB

Finished work with no time logged, for a timesheet clean-up before month end.

Run on Jira Cloud on .

timeSpent is not EMPTY AND originalEstimate is EMPTY

Work where people logged time although nobody estimated it. Shows where planning was skipped.

Run on Jira Cloud on .

timeSpent >= "1d 2h" AND project = MOB

Items in one project at or above a precise threshold, written as a combined duration.

Run on Jira Cloud on .

timeSpent is not EMPTY AND status != Done

Started work that already has time booked, for a handover or a mid-sprint check.

Run on Jira Cloud on .

Pitfalls

  • You cannot compare it with another field. timeSpent > originalEstimate returns "The value 'originalEstimate' for field 'timeSpent' is invalid. Please specify a positive duration format; for example: '1h 30m', '2d'." To find overruns, pick a fixed threshold or check each estimate size separately (checked on Jira Cloud, November 2026).
  • timeSpent is EMPTY is how you find work with nothing logged. The docs do not describe timeSpent = 0 as the way to do it, so use EMPTY.
  • Write the unit every time: w, d, h or m. Quote a value that contains a space, such as "1d 2h".
  • The field is the total on the item. It cannot tell you who logged the time or when. For that, use the worklog date and worklog author fields. ~ is rejected: "The operator '~' is not supported by the 'timeSpent' field."

Questions and answers

How do I find done work with no time logged?

Combine status = Done with timeSpent is EMPTY, and add a project or date clause to keep the list short.

Sources

  1. JQL fields (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages