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).
Navigate to the script folder to which you wish to add a new .groovy file.
Click the Create New File icon in the Script Editor heading.
Enter a file name in the Add New Groovy File window.
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.
Select the .groovy file you wish to edit from the left-hand Script Root file navigator.
Make any changes necessary to the file in the right-hand script field.
Select the orange Save button when you have finished editing.
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.
Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.