Going Stellar

Home/Smart values reference

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

ArgumentWhat it isRequired
digitsNumber of decimals to keep, only for ROUND() inside a math expressionno

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:

8

Run on Jira Cloud on .

{{issue.summary.length().minus(20)}}

The same subtraction without abs keeps the sign, which tells you the direction.

Result:

-8

Run on Jira Cloud on .

{{#=}}ABS(-6){{/}}

The function form inside a math expression.

Result:

6

Run on Jira Cloud on .

{{#=}}ROUND(2.567, 1){{/}}

Round to one decimal, which the dotted round does not offer.

Result:

2.6

Run on Jira Cloud on .

{{#=}}FLOOR(1.9){{/}}

Round down, for example to count complete pages.

Result:

1

Run on Jira Cloud on .

{{#=}}CEILING(1.1){{/}}

Round up, for example to count the pages needed.

Result:

2

Run 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, .floor and .ceil all give 2 (checked on Jira Cloud, November 2026). Round inside {{#=}} instead.
  • The function is CEILING in a math expression but ceil as 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.

Sources

  1. Jira smart values: math expressions (Atlassian Support)

Markdown version · All smart values