Im updating a script we have in place that is adding request participants when an issue is created.
Im changing the script to use the accountId rather than username but it doesnt seem to be working. I can run the script and it doesnt give any errors but it also is not setting any request participants.
Is there an error in my code or syntax that isnt setting the request participant?
def reqParticipant = "customfield_10026"
if(issue.fields.summary == "NOOO Account Locked / Password Reset" && issue.fields.issuetype.name == "Access"){
def result = put("/rest/api/2/issue/${issue.key}")
.header("Content-Type", "application/json")
.body([
fields:[
(reqParticipant): [[accountId: "557058:834c28b8-f9fc-4ebb-8a47-84476500b5c5","59fa01ed5556ec74b24dd362"]]
]
])
.asString()
}