[All Adaptavist Apps]

Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Follow the steps below to create a behaviour in ScriptRunner for Jira Cloud:

  1. Navigate to ScriptRunner → Behaviours. You are presented with either a list of previously created behaviours, or a landing screen if you have not previously created any.
    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 no behaviours 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 be associated with the behaviour from the Projects drop down list.
  5. Select the type of issue you want to use from the Issue Types drop down list.
  6. Click the Add Field button to choose which issue type fields you 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 when beginning the issue creation process 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. Enter your code within the Script box, as required. You can also select an example script from the Examples drop down list and modify it as required.
  10. Click Save to confirm your configurations. You can also click the Back button to go back through your steps, or you can Cancel.










  • No labels