Script Runner set assignee in a post function

I must be missing something in this simple script. It's a post function (not in the Create transition). The logs appear just as expected, the user in question can be assigned the issue via the UI, the custom field exists. But the assignee is never changed in the issue.

1 answer

The script works fine. The problem was that the workflow I was testing it with had another post function lower down that set the assignee to the current user. I should take my own advice and stay away from the default JIRA workflows and the unexpected stuff that lurks in them :-)

After much playing around we found existing functionality from "Assign From Field This function assigns issue to user from the custom field.". Part of the script runner, so no need for custom scripting

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

Over 52% of internet users say obtaining information in their own language is more important than price and 75% of the world’s population doesn’t speak English. It’s no wonder then that successful gl...