UseConfiguration Exporterto export extension configuration information to a descriptor YAML file. The YAML file contains the information required to configure built-in extension points like:
Listeners
Hooks
Macros
UI fragments
Using the YAML file within script plugins when migrating from one instance to another allows scripts to be automatically configured. Automatic configuration of scripts saves time and ensures consistency across instances.
Follow these steps to run the built-in script:
Navigate to Built-in Scripts > Configuration Exporter within ScriptRunner.
Select the items you want to generate the YAML for inExport What.
Items with configurations automatically appear here. Multiple items can be exported to one YAML file.
When theNotefield appears, add a note to each item.
Only items with notes are shown, so make sure each item has one.
SelectRun.
You can selectPreviewinstead ofRunto view changes before implementing them.
Once you selectRun, a code snippet appears.
Copy this code snippet and paste it into yourscriptrunner.yamlfile.
You can manually edit the code yourself to add more items, though it’s generally easier to re-generate the YAML file using theConfiguration Exporterscript.
For more information on using YAML files to create script plugins seeCreate a Script Plugin.