During a workflow transition I'm attempting to copy the value of the current assignee into a single user custom field, then separately add the current user (the person clicking the button that does the transition) into another single user customfield.
Please can someone help me write the Groovy script for Scriptrunner?