# Business days in Jira Automation: syntax and examples

URL: https://goingstellar.ro/reference/smart-values/business-days/

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

- `number` (required: no): How many business days to add or subtract, for plusBusinessDays and minusBusinessDays

## 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 29 Nov 2026.

```
{{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 29 Nov 2026.

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

Sets a due date five working days ahead.

Result:

```
2026-12-04
```

Run on Jira Cloud on 29 Nov 2026.

```
{{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 29 Nov 2026.

```
{{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 29 Nov 2026.

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

Counts the working days between today and the due date.

Result:

```
12
```

Run on Jira Cloud on 29 Nov 2026.

## 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.

## Related

- [plusDays() / minusDays() and other units](https://goingstellar.ro/reference/smart-values/date-plus-minus/)
- [diff()](https://goingstellar.ro/reference/smart-values/date-diff/)
- [startOfMonth and endOfMonth](https://goingstellar.ro/reference/smart-values/startofmonth-endofmonth/)
- [{{now}}](https://goingstellar.ro/reference/smart-values/now/)
- [withDayOfMonth(), withMonth() and other with… setters](https://goingstellar.ro/reference/smart-values/date-with/)
- [withNextDayOfWeek()](https://goingstellar.ro/reference/smart-values/withnextdayofweek/)

## Sources

- [Jira smart values: date and time (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/)
- [Use smart values to manipulate and format dates (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/)

