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


最終更新日: 2021 年 12 月 8 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.