The Settings page (Cog tab) is only accessible for group members with System Administrators permission.

System Admin Only Script Edit Permission

Script Edit Permissions for ScriptRunner, gives Jira system administrators the ability to restrict which administrators can edit scripts, based on groups. Users with Jira system administrators or Jira administrators global permissions have script editing permissions by default. This feature allows script editing permissions to be restricted to a smaller group of administrators.

When enabled, Script Edit Permissions gives editing permission to Jira system administrators only. System administrators can then optionally extend script editing permissions to Jira administrator groups.

You cannot restrict system administrators from editing scripts. For more information on Jira permission levels, see this Permissions Overview.
Please note that Jira administrators can add themselves to any group, meaning they can add themselves to a group with Script Edit Permissions. Administrators can also use the Switch User built-in script to gain Script Edit Permissions through a user belonging to a group with permissions. However, all group changes and usage of the Switch User built-in script are recorded in the Audit Log.
If you have a high number of Jira administrators, not all of whom are familiar with the complexities of executing and creating scripts, consider enabling Script Edit Permissions with no additional groups, limiting permissions to only Jira system administrators.

For example, you may wish to restrict script editing permissions to only your Jira administrators with scripting knowledge. To do this, first, create a new group with the Jira administrators permission and add the administrators who have the requisite scripting knowledge. After you’ve created the new group, follow the steps below:

  1. Navigate to Add-ons from the Jira administrators menu.

  2. Select Settings under ScriptRunner.

    script edit permissions cog
  3. Toggle Script Edit Permissions on.

  4. Only users with Jira administrator global permissions appear in the Groups field. Select the group(s) to give script editing permissions to.

    script edit permissions groups

    A Settings Updated pop-up appears, confirming the change.

  5. To remove script editing permissions, click the X next to the group name.

settings page
For information on how to create groups, see the View, Create or Delete a Group documentation. For information on managing global permissions, see the Managing Global Permissions documentation.

Switch to a Different User Built-in Script

The Switch User built-in script allows administrator users to temporarily assume the identity of another user.

This script is enabled by default. However, if you have extremely strong compliance requirements you may wish to disable this feature.

Users with Script Edit Permissions can still create scripts that perform a user switch, via the API.

To enable or disable Switch User follow the steps below:

  1. Click the administrator Cog

  2. Navigate to ScriptRunner in the sidebar and select ScriptRunner Settings.

    Alternatively, if you are already on a ScriptRunner administration tab, click the Cog tab.
  3. Toggle Switch to a Different User Script on/off.

    enable switch user

Anonymous Analytics

Anonymous Analytics collects ScriptRunner usage data, together with platform version, plugin version, and SEN, allowing Adaptavist to gain insight into ScriptRunner usage. All data collected is for internal use only. See our EULA for more information.

Anonymous Analytics is enabled by default (if Atlassian analytics is enabled).

To enable or disable Anonymous Analytics follow the steps below:

  1. Navigate to the Settings page by clicking the administration Cog and selecting Add-ons.

  2. Click ScriptRunner Settings under ScriptRunner in the sidebar.

    Alternatively, if you are already on a ScriptRunner administration tab, click the Cog tab.
  3. Toggle Anonymous Analytics on/off.

    settings analytics
    If Atlassian analytics is disabled, the toggle is greyed out. To check if Atlassian analytics is enabled, select System from the administration menu, and select Analytics under Advanced in the sidebar.

Have questions? Visit the Atlassian Community to connect, share, and learn with other Atlassian users and experts, including Adaptavist staff.

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

Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.