Going Stellar

Home/Smart values reference

Jira Automation smart value

Date locale in Jira Automation: syntax and examples

Dates print in US English by default. Put locale("fr") or withLocale("fr") in front of a format to get month and weekday names in that language and the local order of the parts. You can pass a literal locale or a value such as the reporter's locale.

Syntax

{{issue.created.locale("de").fullDate}}
{{issue.created.withLocale("fr").asLongDateTime}}
{{issue.created.locale(issue.reporter.locale).longDateTime}}

Arguments

ArgumentWhat it isRequired
localeA Java locale such as fr, fr_CA or pt_BR, in quotes, or a value such as issue.reporter.localeyes

Works on

  • Fields: any date or date-time value
  • Returns: a date value in that locale; add a format after it

Examples

{{issue.created.locale("de").fullDate}}

Prints the full date for German-speaking customers, with the weekday in German.

Result:

Sonntag, 29. November 2026

Run on Jira Cloud on .

{{issue.created.withLocale("es").longDate}}

Gives a Spanish long date; withLocale() and locale() behave the same.

Result:

29 de noviembre de 2026

Run on Jira Cloud on .

{{issue.created.locale("fr").format("EEEE d MMMM")}}

Combines a locale with your own pattern for a French sentence such as dimanche 29 novembre.

Result:

dimanche 29 novembre

Run on Jira Cloud on .

{{issue.created.locale("fr").dayOfWeekName}}

Returns only the weekday name in French.

Result:

dimanche

Run on Jira Cloud on .

{{issue.created.locale("ja").mediumDate}}

Shows how the order of year, month and day follows the locale.

Result:

2026/11/29

Run on Jira Cloud on .

{{issue.created.locale(issue.reporter.locale).longDateTime}}

Uses the reporter's profile locale, so each person sees their own format.

Result:

November 29, 2026, 4:06:13 PM UTC

Run on Jira Cloud on .

Pitfalls

  • The locale must come before the format. {{issue.created.longDate.locale("fr")}} renders empty because longDate has already turned the date into text (checked on Jira Cloud, November 2026).
  • An unknown locale is not an error. locale("xx_YY") printed 2026 Nov 29, so a typo gives a plausible date in the wrong style (checked on Jira Cloud, November 2026).
  • locale("fr").monthOfYear rendered empty, while dayOfWeekName was translated. For a translated month name use a pattern, as in format("MMMM").
  • Both fr_CA and fr-CA worked in the checks and gave the French date, so the separator is not what makes a locale fail.

Sources

  1. Use smart values to manipulate and format dates (Atlassian Support)

Markdown version · All smart values