Hello community!
Can you please advice how can I get following properties from customfield?:
Let us assume following customfield of type icon label:
"customfield_16301": {
"id": 15501,
"self": "https://something.com/rest/iconselectoptions/1.0/option/15501",
"label": "ERROR",
"iconUrl": "https://something.com/secure/viewavatar?size=xsmall&avatarId=19996&avatarType=iconselectlist",
"avatarId": 19996,
"sequence": 1,
"disabled": false
}
Now in scriptrunner I can get value and name of the customfield easily:
def cfVendorUrl = customFieldManager.getCustomFieldObject(15803)
def vendorUrlValue = issue.getCustomFieldValue(cfVendorUrl) as String
Now, how can I get iconUrl, self, and other properties?
Thanks!