[All Adaptavist Apps]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can Follow the steps below to create a Behaviour as followsin ScriptRunner for Jira Cloud:

  1. Navigate to ScriptRunner → Behaviours.
    Upon opening the Behaviours page, you are presented with either a list of previously created Behaviours, or if you have not previously created any, you will see a landing screen.
    1. Click Create Behaviour from the previously created list. You can also Edit or Delete your selected Behaviour via the Actions ellipsis on this page.

      OR
    2. Click Create Behaviour from the initial landing screen if none have been previously created.
  2. Enter a name in the Behaviour name field.

  3. Check the Enabled Status option, as required. When set to Enabled, the behaviour is active as soon as it has been saved.
  4. Select the project to associate be associated with the behaviour from the Projects drop down list.
  5. Select the type of issue you wish want to use from the Issue Types drop down list.
  6. Click the Add Field button to choose which issue type fields you wish want to include in the behaviour. You will see the Add Behaviour Field pop up window displayed:

  7. Select the field from the Affected Field drop down list and click Next. You will now see the following screen:

  8. Enable the Events to run as either OnLoad or OnChange. If you would like to run the behaviour once only then choose the OnLoad option, or if you would like to run it as the user is making changes in the Create panel then choose the OnChange option.
  9. Edit the code within the Script box, as required. You can also select an example script from the Examples drop down list.
  10. Click Save to confirm your configurations. You can also click the Back button to go back through your steps, or you can Cancel.

...