Script Editor
What is the Script Editor?
Manage your .groovy script files and folders using the ScriptRunner Script Editor. Reuse and share scripts across an instance without the need for FTP services or server administrators.
How to use the Script Editor
With the Script Editor, you can create, edit, move, save, rename, and delete .groovy script files and folders 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.
To access Script Editor, navigate to ScriptRunner, and select Script Editor from the left-hand menu (or ScriptRunner tab).
Create Files and Folders
Edit Files
Changes are not saved automatically. When there are unsaved changes to your script, the Save button is present. When all changes are saved, the Saved button replaces the Save button. To delete a .groovy file, click the Delete button.
Rename and Delete
The Script Editor also allows you to rename and delete .groovy files and folders.
- Right-click on the file/folder in question.
- From the drop-down, choose to either delete or rename the file/folder.
Expand and Collapse Folders
Expand/collapse all
To expand or collapse all script folders, use the Expand All and Collapse All buttons in the Script Editor heading.
This expands/collapses all folders and sub-folders in your root folder(s).
Expand single folder
To expand a single folder, right-click on the selected folder and select Expand All.
This expands the selected folder and all sub-folders.
Referring to classes in the script root
For information on script roots and how to refer to classes in the script root, see the Script Roots page.