Hi admins,
I have a complicated Asset object schemes. It works some how 
I need to get the value of attributes' from issue. I wrote custom script post function. Bu it’s not working.
responsibleTeam: asset custom field
supportLevel: single select list custom field
firstLvlCF: asset custom field
<span><span>def cfmgr = ComponentAccessor.getCustomFieldManager()</span></span>
<span>def responsibleTeam = cfmgr.getCustomFieldObject("customfield_12345")</span><span>def </span>
<span>supportLevel = cfmgr.getCustomFieldObject("customfield_12345")</span>
<span>def </span><span>responsibleTeamValue = issue.getCustomFieldValue(responsibleTeam)</span>
<span>def firstLvlCF = cfmgr.getCustomFieldObject("customfield_12345")</span>
<span>def firstLvl = issue.getCustomFieldValue(firstLvlCF)</span>
<span>if (supportLevelValue == "1st Level") {</span><span> issue.setCustomFieldValue(responsibleTeam, firstLvl) </span>
<span>} </span>
Bests,
Deniz