Quartz Docs
Docs › Core concepts › Business calendars

Business calendars

Business calendars define the working hours, holidays and one-off closures that every Quartz SLA timer counts against — nights, weekends and closed days are skipped, so a four-hour goal means four working hours, not four wall-clock hours.

Why calendars matter

An SLA promise like "respond within four hours" almost never means four real-time hours — it means four hours of your service desk's working time. A calendar tells each timer when the clock is running. Outside the calendar's open hours the clock is frozen and resumes automatically at the next working minute.

Every elapsed-time and deadline calculation is projected through the assigned calendar, so the same goal behaves correctly whether work pauses overnight, over a weekend, or over a public holiday.

Note

Calendars only shape duration SLAs (business-elapsed working time). A date-field target breaches at the literal wall-clock value taken from an issue field — it is not projected through the calendar. See Create an SLA for target types.

What a calendar contains

Each calendar bundles four things that together decide which minutes count:

PartWhat it controls
Weekly scheduleWhich days of the week are working days.
Business-day hoursThe open hours within each working day.
HolidaysDates the calendar is closed (fixed or recurring).
Closed exceptionsOne-off closures for a specific occasion.

Any minute that falls on a non-working day, outside business hours, on a holiday, or inside a closed exception is skipped by every timer using that calendar.

The two calendars that ship

Quartz seeds two calendars so you can start tracking SLAs immediately without configuring anything:

CalendarBehaviour
DefaultA standard business-hours week — working hours Monday to Friday, nights and weekends skipped.
24/7Always open. Every minute counts, with no skipping. Use this for round-the-clock services.
Note

If an SLA has no calendar assigned, the timer falls back to a 24/7 calendar — every minute counts. Assign a business-hours calendar when you want nights and weekends excluded.

the Calendars screen listing the seeded Default and 24/7 calendars
Screenshot — the Calendars screen listing the seeded Default and 24/7 calendars

Create or clone a calendar

Setting up a custom calendar — anything beyond the two seeds — is what satisfies the "business hours" step on the Radar getting-started checklist. The fastest route is to clone a calendar that is close to what you need and adjust it.

1

Open the Calendars screen

In the Quartz hub, go to Calendars under CONFIGURE. Editing calendars requires the manageCalendars capability (Jira admins and the Full configuration umbrella always have it). See Permissions.

2

Set the weekly schedule and hours

Choose which days are working days and set the open hours for each business day. Hours outside this window are never counted.

3

Add holidays and closures

Add the dates the calendar is closed, and any one-off closed exceptions. Holidays can be fixed dates or recurring (the same date each year).

4

Save, then assign it to an SLA

Save the calendar, then open the relevant SLA definition and assign this calendar as its working-hours calendar. The timer starts honouring it on the next computation.

Screenshot — calendar editor showing the weekly schedule, business-day hours, and holidays list

Holidays and one-off exceptions

There are two ways to mark a calendar closed, and one global option:

TypeUse it for
Holiday (fixed)A closure on a specific calendar date.
Holiday (recurring)A closure that repeats on the same date every year.
Closed exceptionA one-off closure — a single occasion that does not recur.

Beyond a single calendar, you can set company-wide holidays globally — fixed dates plus recurring ones — managed from the Calendars area alongside your calendars.

Tip

Put dates that affect the whole organisation (national public holidays, company shutdown weeks) in company-wide holidays so you set them once, and keep team-specific closures on the individual calendars that need them.

Time zone

A calendar's open hours and closed days are evaluated against the dates and times you configure on it. Set the business-day hours and holiday dates to reflect the working location the SLA serves.

Screenshot — business-day hours and time-of-day settings on the calendar editor

How the clock honours the calendar

SLA status is computed on demand — nothing about elapsed time is stored or backfilled. When the engine projects elapsed time and the deadline, it counts only the minutes that fall inside the assigned calendar's open hours and skips everything else.

This is independent of, and works alongside, two other ways time can stop counting:

MechanismWhat it skips
CalendarNights, weekends, holidays and closed exceptions — for every timer using the calendar.
Pause conditionsTime while a pause condition holds, e.g. "waiting on customer". Shown on the issue panel as "Paused — not counted".

So a timer can be frozen because the office is shut (calendar) or because the clock is paused (a pause condition) — both reduce the working time counted toward the goal. The per-issue Cycle breakdown shows the worked time and pause intervals per cycle, all recomputed on demand.

Note

Calendar gaps — weekends, holidays and closed hours — and pause conditions are all honoured when Quartz counts working time toward a goal.

Attaching a calendar to an SLA target

A calendar takes effect once it is assigned to an SLA definition. Each SLA references one working-hours calendar; the timer projects its duration goal through that calendar. Change the calendar and the next computation reflects it immediately — there is nothing to recalculate or migrate, because status is always derived fresh.

Warn

Editing a calendar changes how every SLA assigned to it is measured, including for in-flight issues — the next computation uses the new schedule. Review which SLAs use a calendar before changing its working hours.


Was this page helpful?   Yes · No  ·  Contact support