// specify the issue key here for the issue to update
def issueKey = "issue key"
-// Specify the id for the Request Participants field here
+// Specify the id for the user picker custom field here
def userPickerField = "customfield_XXX"
-// specify the account ID of the user to add as a request particaipant here
+// specify the account ID of the user to add
def userAccountId = "XXXXXXXXXXXX"
def result = put("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')