hi all
I want to get the custom field value and change the value to the issue version, my code is as follows
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.customFieldManager
def field = customFieldManager.getCustomFieldObject('customfield_14401')
def value = issue.getCustomFieldValue(field)
def lis = value as List
issue.setFixVersions(lis)
The code did not report an error or execute successfully
Is that because you're not allowed to do it