Jira Automation smart value
abs, round, floor, ceil in Jira Automation: syntax, examples
Four number helpers: abs drops the minus sign, round goes to the nearest whole number, floor goes down and ceil goes up. Use them after a calculation, for example to show how far a value is from a target without a sign.
Syntax
{{number.abs}}
{{number.round}}
{{number.floor}}
{{number.ceil}}
{{#=}}ROUND(expression, digits){{/}}
Arguments
| Argument | What it is | Required |
|---|---|---|
digits | Number of decimals to keep, only for ROUND() inside a math expression | no |
Works on
- Numbers: a number field, or the result of length(), size, plus(), minus(), divide()
- Returns: a number
Examples
{{issue.summary.length().minus(20).abs}}Show how far a summary is from a 20 character limit, whether it is under or over.
Result:
8Run on Jira Cloud on .
{{issue.summary.length().minus(20)}}The same subtraction without abs keeps the sign, which tells you the direction.
Result:
-8Run on Jira Cloud on .
{{#=}}ABS(-6){{/}}The function form inside a math expression.
Result:
6Run on Jira Cloud on .
{{#=}}ROUND(2.567, 1){{/}}Round to one decimal, which the dotted round does not offer.
Result:
2.6Run on Jira Cloud on .
{{#=}}FLOOR(1.9){{/}}Round down, for example to count complete pages.
Result:
1Run on Jira Cloud on .
{{#=}}CEILING(1.1){{/}}Round up, for example to count the pages needed.
Result:
2Run on Jira Cloud on .
Pitfalls
- After
divide()on whole numbers the fraction is already gone: with a summary of Hello World! (12 characters)length().divide(5),.round,.floorand.ceilall give 2 (checked on Jira Cloud, November 2026). Round inside{{#=}}instead. - The function is CEILING in a math expression but
ceilas a dotted smart value. - On a field without a value the chain prints an empty string, so a comment can end up with a gap where the number should be.
Related
- {{#=}} math expressions
- plus(), minus(), multiply(), divide() on numbers
- format() and formatWithLocale()
- gt(), gte(), eq(), lt(), lte()