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
| Argument | What it is | Required |
|---|---|---|
locale | A Java locale such as fr, fr_CA or pt_BR, in quotes, or a value such as issue.reporter.locale | yes |
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 2026Run 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 2026Run 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 novembreRun on Jira Cloud on .
{{issue.created.locale("fr").dayOfWeekName}}Returns only the weekday name in French.
Result:
dimancheRun on Jira Cloud on .
{{issue.created.locale("ja").mediumDate}}Shows how the order of year, month and day follows the locale.
Result:
2026/11/29Run 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 UTCRun 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").monthOfYearrendered empty, whiledayOfWeekNamewas translated. For a translated month name use a pattern, as informat("MMMM").- Both
fr_CAandfr-CAworked in the checks and gave the French date, so the separator is not what makes a locale fail.
Related
- Date formats (jiraDate, format(), shortTime…)
- setTimeZone() and convertToTimeZone()
- dayOfMonth, dayOfWeekName and other date attributes
- {{now}}
- {{assignee}}, {{reporter}}, {{creator}}, {{initiator}}