The requested participant field can be set like any other custom field in Jira. However, referencing a custom field by its id is not a best practice for SIL scripting. See Custom Field Aliases for the preferred method of referencing custom fields.Custom Field Aliases for the preferred method of referencing custom fields.
This post function automatically adds a requested participant.
customfield_10301 = assignee;