Skip to main content
Skip table of contents

GET_EXTERNAL_ASSET_FIELD

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:

CODE
[
  {
    "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 ....
]

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

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

This will result in field Value 1

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.