The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

With what rights does RunOnStartUp execute?

David Skopalik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2025

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
   }
}

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
March 31, 2025

Hi @David Skopalik

When it comes to script execution, it mainly requires a user with Jira Admin access.

If it is project specific, you could also try to set to a user with Project Admin permission.

I am looking forward to your feedback.

Thank you and Kind regards,
Ram

David Skopalik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2025

This script is executed automatically on instance startup.

When executed manually, it requires a SysAdmin user to launch it, lower admin accounts are insufficient for the Grabs to work.

My question is not what rights does a user need to execute the script, my question is with what rights does the script run, as it does not get executed by any user explicitly. It gets executed by the system when starting.

Thanks,

David