Jira Automation smart value
format and formatWithLocale in Jira Automation: examples
format prints a number with US thousands separators, format(pattern) applies a Java style pattern, and formatWithLocale uses the separators of a locale such as fr_FR or de_DE. Use them when a number goes into a comment, an email or a Slack message that people read.
Syntax
{{number.format}}
{{number.format("pattern")}}
{{number.formatWithLocale("fr_FR")}}
Arguments
| Argument | What it is | Required |
|---|---|---|
pattern | A Java number pattern such as ### or #,##0.00 | no |
locale | A locale code with an underscore, such as fr_FR or de_DE | no |
Works on
- Numbers: number fields and calculated numbers
- Returns: text
Examples
{{issue.summary.length().multiply(100000).format}}Add thousands separators to a large number (12 characters times 100000).
Result:
1,200,000Run on Jira Cloud on .
{{issue.summary.length().multiply(100000).format("###")}}The pattern ### prints the digits without separators.
Result:
1200000Run on Jira Cloud on .
{{issue.summary.length().multiply(100000).format("#,##0.00")}}Show two decimals and separators, as in an amount.
Result:
1,200,000.00Run on Jira Cloud on .
{{issue.summary.length().multiply(100000).formatWithLocale("fr_FR")}}French formatting uses spaces between the thousands.
Result:
1 200 000Run on Jira Cloud on .
{{issue.summary.length().multiply(100000).formatWithLocale("de_DE")}}German formatting uses dots.
Result:
1.200.000Run on Jira Cloud on .
Pitfalls
- With fr_FR the thousands separator is a narrow no-break space (U+202F), not a normal space, so the result does not match a text comparison against a typed space (checked on Jira Cloud, November 2026).
- Locale codes are written with an underscore, as in fr_FR and de_DE.
- On a field without a value the format functions print an empty string, as the doc examples
issue.Invoice Amount.formatdo on a site without that field.
Related
- asPercentage and asCurrency
- {{#=}} math expressions
- locale() and withLocale()
- Date formats (jiraDate, format(), shortTime…)