I was wondering how to run a script using the ScriptRunner plugin when my Jira instance starts. Our custom scripts need some initialization to run correctly, and the current process is for the system admin to go run a startup script manually using the console.
I’m curious if there is an event I can listen for or part of the ScriptRunner API I can tap into. I did find that ScriptRunnerImpl does feature a runScriptsAtStartup method, but I am not sure what this does or if I can use it. My current best idea is to add a delay to the startup shell script after the jira command and then call a custom REST endpoint using curl, hoping that Jira is fully initialized when the call is made.
Part of me wonders if it’s time to develop a full-blown plugin.
@Jamie Echlin _ScriptRunner - The Adaptavist Group_