Hi
I want to access attribute values in an Assets object i.e. address details for an email or store in a text field.
I am using JMWE at the moment but could also try Scriptrunner if there is a solution there.
I can see my object using
{{ issue | insightFieldValue("customfield_10076") | first | field("label") }}
But I want to get at the attributes. The structure I can see via a dump() is
{
"id": "ed27ff36-cae3-4680-979c-a7457da17e:3496",
"objectKey": "ITEM-3496",
"label": "Site 1",
"objectType": {
"id": "ed27ff36-cae3-4680-979c-a7757da17e:16",
"name": "Site"
},
"attributes": {
"country": {
"value": "England",
"displayValue": "England",
"searchValue": "England"
}
}
}
Any one else solved this?