Round off field to 'n' decimal places using automation

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

There are customers who perform many mathematical calculations in Jira like (3.557+29.12+44.222)/3. The answer is stored in a field like 25.633.

Solution

Customers willing to round it off 2 or n decimal places can use the below smart value:

  • {{issue.<field name>.format(".#")}} - For upto 1 decimal place

  • {{issue.<field name>.format(".##")}} - For upto 2 decimal places

  • {{issue.<field name>.format(".###")}} - For upto 3 decimal places

Just keep adding a '#' after the decimal to round it that many places

Updated on February 24, 2025

Still need help?

The Atlassian Community is here for you.