Script action

The Script action configuration type will execute a script where the live field has been configured (screens, projects, and issue types). Scripted actions support both JavaScript and TypeScript.

Add a live fields customization

  1. Follow the steps below to complete your live field configuration.

Configure a Script action

The rule builder (Figure 1, right) is organized in a When-Then setup; the When section details where your configuration will be applied and the Then section contains the actual configurations. Follow the steps above to add a live fields configuration to your Jira instance, then follow these steps:

  1. For Screens, select which screen types should have your configuration applied - Issue create view, Issue view, and/or Issue transition view.

  2. For Projects, select which projects should have your configuration applied.

    1. Click Select projects and check the specific projects, or select Any.

    2. Click Add.

  3. For Issue types, select which issue types should have your configuration applied.

    1. Click Select issue types and check the specific issue types.

    2. Click Add.

  4. Select Scripted action under THEN. Click the Edit button to open the script editor (Figure 2, right).

  5. Enter your script and click Save.

  6. Set the options for your configuration as needed:

    1. On load - Run the Scripted action when one of the selected Jira screens loads.

    2. On change - Run the Scripted action when the value of any field in the selected screens changes.

  7. Click Save.

Note: Use the Templates button in the upper right of the script editor to quickly create a configuration script!

You are viewing the documentation for Jira Cloud.

 

livefield-ScriptedAction.png
Figure 1 - Configuration rule builder
livefield-ScriptedActionScriptEditor.png
Figure 2 - Script editor

Determining custom field IDs

Â