Round off field to 'n' decimal places using automation
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
要約
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.
ソリューション
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
最終更新日: 2025 年 2 月 21 日
Powered by Confluence and Scroll Viewport.