Versions Compared

Key

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

...

  1. Go to Profile > A Non-default Project Mapping > Script Rules and press New Script Mapping.

    Image RemovedImage Added
  2. This will then open the configuration for the New Script Mapping. Here you enter the relevant Script and Language and then press Save.

  3. Now you will be able to configure the other tabs within the Script Rule. e.g. Issue, Email and Custom Field Defaults.

  4. Once everything is configured and saved, you will be able to view the Script Rule config within the Script Rule Summary.

    Image RemovedImage Added

Configuration Options

Show script context

This displays the context for script rule execution.

...

Script

This is where the custom script is entered. This script is used to determine whether the email should be matched by this Script Rule.

...

Language

This defines the language that the Script Rule will use when creating and running the script. Support for JavaScript (Nashorn) code is built in - alternatively it is possible to install an additional runtime engine which can be used instead.

Info

See the following page for information about installing additional scripting languages: https://thepluginpeople.atlassian.net/wiki/spaces/JEMH/pages/241106948/Install+a+Scripting+runtime+Engine+Nashorn+Groovy+Graal#Summary

...

Script rule validation

Test Case

This is where you select the Test Case that should be used to test the Script Rule to ensure that it is functioning correctly. Only Test Cases that have this Profile selected will show here.

...

Check Rule

This will run the script rule against the selected Test Case. Once run it will display whether there was a Rule Match and will display any Result Map values.

...