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
| Argument | What it is | Required |
|---|---|---|
number | How many business days to add or subtract, for plusBusinessDays and minusBusinessDays | no |
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-30Run 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-27Run on Jira Cloud on .
{{now.plusBusinessDays(5).jiraDate}}Sets a due date five working days ahead.
Result:
2026-12-04Run 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-10Run 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-31Run on Jira Cloud on .
{{now.diff(issue.duedate).businessDays}}Counts the working days between today and the due date.
Result:
12Run 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
toBusinessDaybecame Monday 20:21 (checked on Jira Cloud, November 2026). - On a weekday,
toBusinessDayBackwardsreturns 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, andplusBusinessDays(1)gave the Monday. The sign ofdiff().businessDaysfollows the same date2-minus-date1 rule as the other units.
Related
- plusDays() / minusDays() and other units
- diff()
- startOfMonth and endOfMonth
- {{now}}
- withDayOfMonth(), withMonth() and other with… setters
- withNextDayOfWeek()