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 ?
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.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.