数式スマート バリューの使用例

Jira Automation テンプレート ライブラリでスマート バリューを使用する方法をご確認ください。

You can use math expressions as smart values to insert or set values of numeric custom fields. These can be used anywhere where a custom field can be edited, for example, the Create, Edit and Transition issue actions.

View the smart values available to insert and format numerical values.

数値型のカスタム フィールドでは式を使用して値を設定できます。

1 + 4 sets the field to "5"

別のフィールドで数式を使うには、以下の例を使って値を挿入します。

{{#=}}1 + 4{{/}} // more verbose but more obvious {{#math}}1 + 4{{/}} // increase a number by 1 {{#increment}}4{{/}}

数値フィールドを参照する

Jira の数値型カスタム フィールドを使用して計算を実行するには、計算式でフィールドをスマート バリューとして参照します。

{{#=}}3.2 * {{issue.My Number field}} + 43{{/}}

次の例を使用して、2 つのカスタム フィールドを追加できます。

{{#=}}{{issue.Sale Amount}} * {{issue.Discount}}{{/}}

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。