Going Stellar

Home/Smart values reference

Jira Automation smart value

Business days in Jira Automation: syntax and examples

These functions skip Saturdays and Sundays. toBusinessDay moves a date forward to a weekday, toBusinessDayBackwards moves it back, plusBusinessDays and minusBusinessDays count weekdays, and first and last business day of the month find the month edges. They suit SLA dates and due-date reminders.

Syntax

{{date.toBusinessDay}}
{{date.toBusinessDayBackwards}}
{{date.plusBusinessDays(5)}}
{{date.minusBusinessDays(3)}}
{{date.firstBusinessDayOfMonth}}
{{date.lastBusinessDayOfMonth}}
{{date1.diff(date2).businessDays}}

Arguments

ArgumentWhat it isRequired
numberHow many business days to add or subtract, for plusBusinessDays and minusBusinessDaysno

Works on

  • Fields: any date or date-time value
  • Returns: a date or date-time; diff().businessDays returns a number

Examples

{{now.toBusinessDay.jiraDate}}

Moves a weekend date to the next working day; on a Sunday this gives the Monday.

Result:

2026-11-30

Run on Jira Cloud on .

{{issue.created.toBusinessDayBackwards.jiraDate}}

Moves a date back to the last working day, for example from a Sunday to the Friday.

Result:

2026-11-27

Run on Jira Cloud on .

{{now.plusBusinessDays(5).jiraDate}}

Sets a due date five working days ahead.

Result:

2026-12-04

Run on Jira Cloud on .

{{issue.duedate.minusBusinessDays(3).jiraDate}}

Finds the day to send a reminder three working days before the due date.

Result:

2026-12-10

Run on Jira Cloud on .

{{now.plusMonths(1).lastBusinessDayOfMonth.jiraDate}}

Chains plusMonths() to find the last working day of next month, for a month-end task.

Result:

2026-12-31

Run on Jira Cloud on .

{{now.diff(issue.duedate).businessDays}}

Counts the working days between today and the due date.

Result:

12

Run on Jira Cloud on .

Pitfalls

  • Only weekends are skipped. Public holidays are not: 24 December plus one business day gave 25 December (checked on Jira Cloud, November 2026).
  • The documentation says business days run from 9am to 6pm, but the time of day is kept as it is. A work item created on a Sunday at 20:21 and moved with toBusinessDay became Monday 20:21 (checked on Jira Cloud, November 2026).
  • On a weekday, toBusinessDayBackwards returns the same day rather than the day before. The due date, a Tuesday, came back unchanged.
  • From a weekend start, plusBusinessDays(0) on a Sunday stayed on the Sunday, and plusBusinessDays(1) gave the Monday. The sign of diff().businessDays follows the same date2-minus-date1 rule as the other units.

Sources

  1. Jira smart values: date and time (Atlassian Support)
  2. Use smart values to manipulate and format dates (Atlassian Support)

Markdown version · All smart values