Administration Functions

Switch User

This allows you to temporarily assume the identity of another user. You can use this for example to:

  • reproduce a problem a user is telling you they are having, e.g. diagnose a permissions problem

  • merge a pull request on behalf of another user (Bitbucket)

  • Update an issue on behalf of another user (if they are unavailable) (JIRA)

To use, enter the user ID of the user you wish to become, and press Run. To return to yourself, log out, then log in again.

When this script is used, it will generate a log entry in the audit log like so:

switch user audit log
You cannot su from a user having only administrative rights to a system administrator.

List scheduled jobs

This script lists the job runners and the job IDs that are scheduled in your instance. If the job has parameters then these are shown in the box below.

No parameters are required for this script, just click Run.

View server log files

Simply shows the last lines of the desired server log. This is useful for quickly checking the log files without having to connect to your server and find the log file, especially if you haven’t been given access to the server.

For how-to questions please ask on Atlassian Answers where there is a very active community. Adaptavist staff are also likely to respond there.

Ask a question about ScriptRunner for JIRA, for for Bitbucket Server, or for Confluence.