Hi, I'm using scriptrunner cloud to create subtask on transition.
Sub task is created fine and reporter is set to current user, i also want the assignee set to current user but struggling to find anything for cloud version.
def response = get('/rest/api/2/myself').asObject(Map)
assert response.status == 200
def currentUsername = response.body.name
issueInput.fields.assignee = [name: currentUsername] as Mapabove code has worked for someone else within the post function script but returns error for me
Varible issueInput is undeclared