Automation Action Examples

ScriptRunner includes example scripts to help you get started with automation actions. When writing your automation action script, select Example scripts in the editor to open the examples panel. From there, you can browse available scripts, preview the code, and load one directly into the editor to use as a starting point.

Make your scripts reusable with dynamic forms

Once you have a working script, you can make it reusable across multiple automation flows without duplicating or editing the code each time. Dynamic forms let you add configurable input fields to your script, so that when someone adds your action to an automation flow, they can set values, such as an issue key, a status name, or a threshold, directly in the flow configuration. No ScriptRunner access or code knowledge is required for these users. This is especially useful when the same action needs to behave slightly differently depending on the flow it's used in.

See Dynamic forms for the full reference, including supported field types, validation tags, and examples.

On this page