Hello,
i try to insert Value to UserPicker FIeld from another TextField. I try:
def onBehalf = customFieldManager.getCustomFieldObject(28311)
def requestParticipants = customFieldManager.getCustomFieldObject(18130)
def givenValue = issue.getCustomFieldValue(onBehalf) as String
def notNull = givenValue != null
if(notNull){
issue.setCustomFieldValue(requestParticipants, givenValue)
}
I don't have any errors here, but it doesn;t work and in logs i have:
Time (on server): Thu Jun 11 2020 11:41:03 GMT+0300 (Moscow Standard Time)
The following log information was produced by this execution. Use statements like:log.info("...") to record logging information.
2020-06-11 10:41:03,482 ERROR [workflow.AbstractScriptWorkflowFunction]: *************************************************************************************
2020-06-11 10:41:03,482 ERROR [workflow.AbstractScriptWorkflowFunction]: Script function failed on issue: null, actionId: 1, file: null
groovy.lang.MissingPropertyException: No such property: customFieldManager for class: Script194
at Script194.run(Script194.groovy:1)