Cannot Add Behaviours

The Behaviours page in ScriptRunner is failing to load information, blocking you from adding behaviours to your Jira instance. Try the steps below before contacting ScriptRunner support.

Behaviours module disabled

One cause of this issue may be that the behaviours module has been disabled. Follow the steps below to check.

  1. From the Administration page, navigate to Manage Apps under Atlassian Marketplace.

  2. Locate ScriptRunner and expand the section.

  3. Click XXX of XXX modules enabled.

  4. From the modules list, find Behaviour admin assets (bh-admin) and check if disabled (greyed out with Disabled in red).

  5. If disabled, click Enable.

Customized HTML banner containing JavaScript

Check your browsers Developer Tools Console Log. If you are getting the following error, it may be caused by a customized HTML banner containing JavaScript:

TypeError: $ is not a function
CODE

This error causes the same issue with post-functions, validators and conditions.

  1. Navigate to the HTML banner.
  2. Locate the following and remove it from the HTML file (either by deleting or commenting out).

    jQuery.noConflict( );
    CODE

    For more information on why this line causes errors see this explanation of jQuery.noConflict().

  3. Clear your browser cache and reload the Behaviours page.