Example Scripts
The Example Scripts modal is your go-to destination for finding basic examples and Adaptavist Example Scripts without having to leave the ScriptRunner app. To access this modal, you can select the Example Scripts button in any code editor within ScriptRunner. This modal automatically displays basic examples and example scripts related to the feature you are working on.
Search for scripts
The Example Scripts modal also has a search function that allows you to easily search for an appropriate script. Simply type one or more keywords into the search bar:
FAQs
Why can't I see any Example Scripts?
When Example Script examples do not display, and there is no error indicator within the Examples modal, this indicates there are no Example Script examples for that particular context. We are constantly adding to Example Scripts, so there may be examples added for that context in the future.
When Adaptavist Example Script examples do not display, and you see an error indicator on the page, your internet connection may be down or blocking API calls to the Adaptavist Example Script API. You should first check your internet connection. If your internet connection is good, ensure that you allow communication to the Adaptavist Example Script API via the examples.scriptrunner.io
domain to receive Example Script examples within the ScriptRunner App. If you still have problems after trying this solution, please contact Adaptavist Support.
Can I still use the Adaptavist Example Scripts site?
Yes, you can still access and use the Example Scripts site.
Does this new modal slow down my instance?
The Example scripts modal sends API requests from a user's browser to the Adaptavist Example Script API. These API requests are used to retrieve and search over external script examples. We have optimized our API to speed up responses, so this modal is unlikely to impact performance.