JQL search for issues within calendar hours or outside calendar hours

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

To search for issues that are currently within calendar hours or outside calendar hours, the JQL function withinCalendarHours can be used.

ℹ️ This function was introduced in JIRA Service Desk Server 3.0.4 and JIRA Service Desk Cloud 3.1.0-OD-05

For example, the following JQL returns issues with 'time to resolution' within the calendar hours.

1 "Time to resolution" = withinCalendarHours()

On the other hand, the following JQL returns unresolved issues with 'time to first response' that is not within calendar hours.

1 resolution = Unresolved AND "Time to first response" != withinCalendarHours()
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.