Jira Automation smart value
Time zones in Jira Automation: syntax and examples
Dates print in UTC by default. convertToTimeZone("Area/City") shows the same moment as the local time in another zone, while setTimeZone("Area/City") keeps the clock time and swaps the offset, which changes the moment. Use convert for messages to people in another zone and set when a time you already hold is a local time.
Syntax
{{issue.created.convertToTimeZone("Europe/Bucharest")}}
{{issue.created.setTimeZone("Europe/Bucharest")}}
Arguments
| Argument | What it is | Required |
|---|---|---|
timezone | A zone ID such as Europe/Bucharest or America/New_York, in quotes, or a value such as issue.reporter.timeZone | yes |
Works on
- Fields: date-time values such as created, updated and now
- Returns: a date-time with the new offset, which a format can follow
Examples
{{now.convertToTimeZone("Europe/Bucharest")}}Shows the current time as a Bucharest user sees it: the clock moves to 18:23 and the offset is +0200.
Result:
2026-11-29T18:23:14.2+0200Run on Jira Cloud on .
{{now.setTimeZone("Europe/Bucharest")}}Keeps the clock at 16:23 and only attaches the +0200 offset, so it is a different moment than now.
Result:
2026-11-29T16:23:14.3+0200Run on Jira Cloud on .
{{now.convertToTimeZone("America/New_York").longDateTime}}Formats the current time for a team in New York, with the zone abbreviation.
Result:
November 29, 2026, 11:23:14 AM ESTRun on Jira Cloud on .
{{now.setTimeZone("Europe/Bucharest").convertToTimeZone("UTC")}}Treats a clock time as Bucharest local time and converts it to UTC, which gives 14:23.
Result:
2026-11-29T14:23:39.3+0000Run on Jira Cloud on .
{{now.convertToTimeZone("Europe/Bucharest").format("dd/MM/yyyy HH:mm z")}}Prints a local time with the zone abbreviation, ready for a message.
Result:
29/11/2026 18:23 EETRun on Jira Cloud on .
{{issue.created.convertToTimeZone(issue.reporter.timeZone)}}Shows the creation time in the reporter's own zone.
Result:
2026-11-29T18:06:13.4+0200Run on Jira Cloud on .
Pitfalls
- Zone names must be valid IDs.
"Mars/Olympus"and"PST"fail with a runtime error, while"UTC+2"was accepted (checked on Jira Cloud, November 2026). - On a date-only field such as the due date, both functions render empty. They need a value that has a time, for example created or now (checked on Jira Cloud, November 2026).
setTimeZone()does not show the same moment in another zone. 16:23 UTC becomes 16:23+0200, which is 14:23 UTC. Pick convertToTimeZone() unless you really mean to relabel the clock time.
Related
- {{now}}
- Date formats (jiraDate, format(), shortTime…)
- locale() and withLocale()
- plusDays() / minusDays() and other units
- diff()
- {{assignee}}, {{reporter}}, {{creator}}, {{initiator}}