• 製品
  • 使用を開始する
  • 関連ドキュメント
  • リソース

Access smart values for forms and form fields

Access smart values on submitted forms and form fields to not only retrieve and manipulate data in Jira Service Management, but also power automations and reporting.

Only smart values on forms that use the form submitted trigger can be accessed.

Retrieve form smart values

You can access submitted forms on issues by using {{forms}} and the automation lists smart values to format the value of forms in a list when setting up a rule.

Example
If the last form in a list of submitted forms on an issue is ‘Onboarding checklist'; {{forms.last}} will return ‘Onboarding checklist’

Retrieve form field smart values

To access a specific smart value of a form field, you’ll need to know both the field type and the field key which acts as the unique identifier of a field in a form. You can customize a specific field's field key when configuring your fields in forms.

Field keys are case-sensitive so need to be entered correctly. This also includes any spaces.

テキスト フィールド

The following field types use the automation text field smart values and format the value as a text string when setting up a rule.

  • 短いテキスト

  • 長いテキスト

  • 段落

  • メール

  • URL

Example
If the value in a text field with the field key Summary is ‘Jane Doe’; {{forms.last.Summary}} will return ‘Jane Doe’

Choice fields

The following field types use the automation lists smart values and format the value of items in a list when setting up a rule. To retrieve the id of a selected choice use {{id}} and to retrieve the label of a selected choice use {{label}}.

  • ラジオ ボタン

  • チェックボックス

  • ドロップダウン

  • Multiselect dropdown

  • Cascading dropdown

  • Assets

Example
If the selected value in a choice field with the field key Location is ‘Sydney’; {{forms.last.Location.label}} will return ‘Sydney’

日付フィールド

The following field types use the automation date and time smart values and format as text values when setting up a rule.

  • 日付

  • 日時

  • 時間

Example
If the selected value in a date field with the field key Due date is ‘10/01/24’; {{forms.last.Due date.fullDate}} will return ‘Wednesday, October 1, 2024’

数値フィールド

The following field types use the automation math expressions smart values and format as numerical values when setting up a rule.

  • 数値

Example
If the value in a number field with the field key Invoice is ‘100’; {{forms.last.Invoice.asCurrency}} will return ‘$100’

User fields

The following field types use the automation users smart values and format as user data when setting up a rule.

  • 単一ユーザー

  • Multiple users

Example
If the value in a user field with the field key Manager is ‘John Doe’; {{forms.last.Manager.displayName}} will return ‘John Doe’

Attachment field

The following field types use the automation lists smart values and format the value of items in a list when setting up a rule. To retrieve the id of an attachment use {{id}} and to retrieve name of an attachment use {{name}}.

  • 添付ファイル

Example
If the value in an attachment field with the field key Upload resume is named ‘Jane Doe CV’; {{forms.last.Upload resume.name}} will return ‘Jane Doe CV’

 

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

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