Hi,
I'm looking to retrieve an unlabeled attribute (name is provider, id is 1293) from an insight object entered in a form (name is incidentAsset, id is 10706). What is the easiest way to find the value of a asset attribute ? I tried several methods found on the internet but without success.
//get asset incident (this part works)
def incidentAssetId = ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10706);
def incidentAsset = issue.getCustomFieldValue(incidentAssetId)
_log.warn "Asset : " + incidentAsset
//get provider (attribute of selected asset, this part don't works)
def providerValue = objectFacade.loadObjectAttributeBean(incidentAsset.getId(),1293).getObjectAttributeValueBeans()[0].getValue()
_log.warn "Provider : " + providerValue