Where do I find the source code for the Adaptavist Script Runner Built in Scripts?

I am looking for the source code for the "Switch to a Different User" script. You used to be able to access the source code from the plugin UI. It seems that option is no longer available. Is there a repo somewhere I can pull the code from ?

1 answer

1 accepted

This widget could not be displayed.

You can find this in the JAR file of the plugin after unzipping it. They should be *.groovy files.

The one you mention is under com/onresolve/scriptrunner/canned/jira/admin/SwitchUser.groovy

On an additional note, if you find an example you like and want to tweak it a bit and have it picked up automatically by ScriptRunner just rename the class and file name to something different and place it under one of your script roots in the corresponding directories which match the package name: <script-root>/com/onresolve/scriptrunner/canned/jira/admin/ for this example.

Same approach with listeners etc.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

300 views 1 4
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you