This function returns the attribute value for a given asset object key. In case the given key, attribute ID or name is not valid or empty, NULL is returned. If the attribute is configured to support multiple values, the output values are separated by commas.

Syntax
getAttributeFromAsset(objectKey, attributeId) #Output: Text
getAttributeFromAsset(objectKey, attributeName) #Output: Text
Examples
Parser expressionDescription
%{getAttributeFromAsset("PTAS-1", "123")}

This example returns the value of the attribute with ID "123" (attribute type Default/Text) for the asset object with object key "PTAS-1", e.g.:
PHONE-001

%{getAttributeFromAsset("PTAS-1", "Name")}
This example returns the value of the attribute "Name" (attribute type Default/Text) for the asset object with object key "PTAS-1", e.g.:
PHONE-001
%{getAttributeFromAsset("PHONE-001", "Created")}
This example returns the value of the attribute "Created" (attribute type Default/Date time) for the asset object with object key "PHONE-001", e.g.:
2024-09-30T10:00:00.000T+02:00
The output format for Date Time attributes is the same as in the Date Picker.
%{getAttributeFromAsset("PTAS-1", "Associated Project")}
This example returns the value of the attribute "Associated Project" (attribute type Project) for the asset object with object key "PTAS-1", e.g.:
10001,10004
For the Project attribute type, project IDs are returned.
%{getAttributeFromAsset(%{issue.cf12566},"Project team")}

This example returns the value of the attribute "Project team" (attribute type User) for the asset object (for example, from a assets objects custom field with a single object), e.g:

557058:13380c58-4287-4135-9e04-4edec2fafebc,557058:5ed8d5af-b3a8-47dc-9933-b1a815a6cf92,557058:16adef20-023f-44f6-a02c-208f1b6dd736

For the User attribute type, Atlassian account IDs are returned.

Additional information

Parameters used in this function

ParameterInput (data type)Description
objectKey

TEXT

Text containing a valid single asset object key.
attributeId

TEXT

Text containing a valid asset object attribute ID.
attributeName

TEXT

Text containing a valid asset object attribute name.
Output

This function returns a TEXT



If you still have questions, feel free to refer to our support team.