I have set up a workflow that auto generates tickets on a weekly basis but I cant figure out how to assign those tickets to specific users.
I have previously used something like this to assign to the user currently creating the ticket.
ctx.issue.fields.Assignee = ctx.currentUser;
But since the system will be creating the workflows this wont work. I need something like this.
ctx.issue.fields.Assignee = User1;