Round off field to 'n' decimal places using automation

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud - This article 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


Last modified on Dec 8, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.