I am trying to do automatic dependency management using Grapes. The dependencies are to be cached on Jira startup. For that purpose i have created in Scriptrunner Script Editor package called "startup" with script "RunOnStartup"
The intended behavior of the grabs works only when a user with SysAdmin rights runs them.
Using logging I have found that upon startup of Jira, the script does get executed, however, currentUser was null when i tried to retrieve it.
My questions is: With what rights does this script get executed? Is it same as SysAdmin? Or something else?
Thanks
Script content:
package startup
class RunOnStartUp {
RunOnStartUp() {
// do grabs here
}
}