The GET_EXTERNAL_ASSET_FIELD function is used to fetch a field value from an external asset platform field by its name.

Usable: ContextFilter, Value Fields

Syntax: { GET_EXTERNAL_ASSET_FIELD(( PARAM_1 PARAM_2 )) }

Parameter

Type

Example

Description

PARAM_1

string

'field A'

The field id.

PARAM_2

object

$.issue.fields.customfield_001[0]

An external asset platform asset item

Issue Custom Field Example:

For example, consider the following $.issue.fields.customfield_001 object:

[
  {
    "appKey": "app1",
    "originId": "1",
    "label": {
      "value": "MacBook Pro 15\" 2016"
    },
    "fields": [
      {
        "fieldId": "field A",
        "value": "field Value 1"
      },
      {
        "fieldId": "field B",
        "value": "field Value 2"
      }
    ]
  },
  .... more items here ....
]
CODE

 Use the GET_EXTERNAL_ASSET_FIELD function to get the field value of the first asset:

GET_EXTERNAL_ASSET_FIELD(( 'field A' $.issue.fields.customfield_001[0])
CODE

This will result in field Value 1