I'm trying to have a script run as the JIRA ScriptRunner user for the "issue updated" event.
However, it will only ever execute as the user initiating, not the ScriptRunner user. I need the ScriptRunner user to execute this script so that I can do a PUT request into a field not visible on the screen.
I first check to see if we're executing as the "ScriptRunner for Jira" for JIRA user and it is not, as can be seen from the logs where I'm logging the "user" variable inside the script.


Any ideas on how to make the ScriptRunner Add-on user run scripts instead of the Initiating user?