Manage your .groovy script files using the ScriptRunner Script Editor. Reuse and share scripts across an instance without the need for FTP services or server administrators. With the Script Editor, you can create, edit, move, save, and delete .groovy script files in root folders from the ScriptRunner front-end.

For example, a script in your Script Roots folder needs updating to include a new condition. Before, you would need to contact the server administrator to update the script. Depending on backlog, this update could take weeks.

With Script Editor, you can add the condition into the .groovy file yourself, saving time, and removing the need for a third party.

Script Editor only supports the creation, editing, movement, saving, and deletion of .groovy script files.

To access Script Editor, navigate to ScriptRunner, and select Script Editor from the left-hand menu (or ScriptRunner Tab).

Create Files

  1. Navigate to the script folder to which you wish to add a new .groovy file.

  2. Click the Create New File icon in the Script Editor heading.

    script-editor-create-new

  3. Enter a file name in the Add New Groovy File window.

  4. Click Add. A new .groovy file is added to the folder.

    Created your file in the wrong folder? Drag and drop the file to the required location in the left-hand Script Root navigation.

    script-editor-move

Edit Files

  1. Select the .groovy file you wish to edit from the left-hand Script Root file navigator.

  2. Make any changes necessary to the file in the right-hand script field.

  3. Select the orange Save button when you have finished editing.

    script-editor-save

    Changes are not saved automatically. When there are unsaved changes to your script, an orange Save button is present. When all changes are saved, a green Saved button replaces the Save button. To delete a .groovy file, click the red Delete button.

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.