Time in Status - JQL search

Cloud This page documents the Forge build of Time in Status for Jira Cloud. On Jira Data Center or Server? See Time in status | SLA | Timer | Stopwatch for Data Center.

Overview

Time in Status fields in the Forge app use schema properties for JQL searching. This replaces the JQL functions used in the Data Center version and entity properties used in the Connect version.

The general syntax is:

"Your Field Name.PropertyAlias" operator value

Where Your Field Name is the name of your Time in Status custom field in Jira.

The property alias goes inside the same quotes as the field name, after a dot: "Time in Status.SecondsValue" > 3600. Square brackets around the alias, a dot after the closing quote, and a custom field ID (cf[N], customfield_N) instead of the name do not work: Jira search answers such a query with an empty result instead of an error. JQL also cannot compare one field with another - the right side of a comparison is always a value.


Searchable properties

Property Type Description
DisplayValue text The formatted time string (e.g., “2h 30m”)
HoursValue number Total time in whole hours (e.g., 2 for “2h 30m”)
MinutesValue number Total time in whole minutes (e.g., 150 for “2h 30m”)
SecondsValue number Total time in seconds
TimeInHoursValue number Total time as decimal hours (e.g., 2.5 for “2h 30m”)
TimeInMinutesValue number Total time in whole minutes (e.g., 150 for “2h 30m”)
StateValue text Active while the issue is in a counted status (and the Count only while conditions are met), otherwise Inactive
DateNextUpdate date When the field value will next be recalculated (only while Active)
DateLastCalculated date When the value was last calculated

HoursValue, MinutesValue, TimeInHoursValue and TimeInMinutesValue

All of them hold the total time, not a part of the display:

  • HoursValue - the total in whole hours. For “2h 30m”: 2.
  • MinutesValue and TimeInMinutesValue - the total in whole minutes. For “2h 30m”: 150.
  • TimeInHoursValue - the total in hours with one decimal. For “2h 30m”: 2.5.

With Use rounding for display on, the numbers are also cut down to the step of the time format. For a threshold below one hour, use SecondsValue or MinutesValue.


Query examples

Find issues where time in status exceeds 4 hours

"Time in Status.TimeInHoursValue" > 4

Find issues where time is between 1 and 8 hours

"Time in Status.TimeInHoursValue" >= 1 AND "Time in Status.TimeInHoursValue" <= 8

Find issues with 2 hours and 30 minutes or more

"Time in Status.MinutesValue" >= 150

Find issues where time exceeds 90 minutes

"Time in Status.TimeInMinutesValue" > 90

Find active issues (still accumulating time)

"Time in Status.StateValue" = "Active"

Sorting

Sort results by any numeric property:

project = "MY-PROJECT" ORDER BY "Time in Status.TimeInHoursValue" DESC
project = "MY-PROJECT" ORDER BY "Time in Status.SecondsValue" ASC

Notes

  • Replace "Time in Status" in the examples with your actual field name.
  • Text property searches (StateValue, DisplayValue) are case-sensitive.
  • Date properties support Jira date functions: startOfDay(), startOfWeek(), now(), etc.
  • For other field types, see: Stopwatch JQL, Timer JQL, Time Between Dates JQL.

Migrating from Connect or Data Center

If you are migrating from the Connect version, note that the search syntax has changed:

Connect (entity properties) Forge (schema properties)
"time in hours:Field Name" > 4 "Field Name.TimeInHoursValue" > 4
"time in minutes:Field Name" > 90 "Field Name.TimeInMinutesValue" > 90

The Forge app has no properties for a part of the time such as Connect’s hours of: and minutes of: - HoursValue and MinutesValue hold the whole total. Rewrite such searches against the total, for example "Field Name.MinutesValue" >= 150 for 2 hours 30 minutes or more.

If you are migrating from Data Center, the custom JQL functions (e.g., timeInStatus()) are replaced by schema property searches. See Feature comparison for details.