Trying to update the default approver field that comes with Help Desk. For my instance of JIRA Cloud the custom field is 'customfield_10029'. I attached a screenshot of the structure and my script listener below. The script listener isn't throwing any errors but it isn't setting the approver field either. I've tried the same script with another user pick list and it works as intended. Would definitely like to leverage the "Approver" field instead of another user pick list.
I thought I was matching the structure of the custom fields properly, but when the script is triggered the approver field isn't being set properly.
How can I properly set the approver field via scriptrunner?
Thanks!
Structure of customfields:

Script Listener:
def approverID = 'customfield_10029'
def approvalsID = 'customfield_10015'
def userApprover = ""
def value1 = issue.fields.customfield_16125.value as String
if (value1 == "Santa Claus"){
userApprover = "santa"
} else {
userApprover = "joe"
}
put("/rest/api/2/issue/${issue.key}")
.header("Content-Type", "application/json")
.body([
fields:[
(approverID):[{
name: userApprover
}],
(approvalsID): [{
canAnswerApproval: true
approvers: [{
approver:{
name: userApprover
}
}]
}]
]
])
.asString()
Edit: Realized that a second custom field is attached the approver field for helpdesk.