Going Stellar

Home/Smart values reference

Jira Automation smart value

now in Jira Automation: syntax and examples

{{now}} is the moment the rule step runs, as a date-time value in UTC. On its own it prints in the default ISO style; every date function and format on this reference can be chained onto it. It is the usual starting point for due dates, cut-off dates and time stamps in comments.

Syntax

{{now}}
{{now.<function or format>}}

Works on

  • Fields: none, it is a standalone value
  • Returns: a date-time in UTC+00:00, such as 2026-11-29T16:07:41.8+0000

Examples

{{now}}

Writes the exact run time into a comment or a log line, in the default format.

Result:

2026-11-29T16:07:41.8+0000

Run on Jira Cloud on .

{{now.plusDays(14).jiraDate}}

Sets a due date two weeks from today in the yyyy-MM-dd form that a date field accepts.

Result:

2026-12-13

Run on Jira Cloud on .

{{now.minusDays(30).jqlDate}}

Builds the cut-off date for a JQL search such as work items not updated in the last 30 days.

Result:

2026-10-30

Run on Jira Cloud on .

Report generated {{now.format("dd/MM/yyyy HH:mm")}}

Puts a readable time stamp at the end of a message or an e-mail footer.

Result:

Report generated 29/11/2026 16:23

Run on Jira Cloud on .

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

Chains three steps to find the first day of next month, for a recurring task that starts then.

Result:

2026-12-01

Run on Jira Cloud on .

{{now.dayOfWeekName}}

Names the weekday the rule ran on, for example to branch on Sunday.

Result:

Sunday

Run on Jira Cloud on .

Pitfalls

  • {{now}} is always UTC, whatever the time zone of the user who triggered the rule. Convert it with convertToTimeZone() before you show a local time.
  • A format turns the date into text, so date arithmetic has to come first. {{now.jiraDate.plusDays(1)}} renders empty, while {{now.plusDays(1).jiraDate}} works (checked on Jira Cloud, November 2026).
  • Function names are exact. {{now.plusDay(1)}} renders empty with no error, so a typo can pass unnoticed until you read the output.
  • Do not compare {{now}} with itself: {{now.compareTo(now)}} does not give 0 (checked on Jira Cloud, November 2026). Compare it with a field value instead.

Questions and answers

Is {{now}} the time the rule was triggered or the time of the step?

The documentation only says it is the current date and time. Use a value you store from the trigger if the exact trigger time matters.

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