Versions Compared

Key

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

This information would be useful in a scenario where you would like to create a custom field processor or project mapping rule which requires the location of an issue via JQL queryis an example script for when Profile’s Script Field Processor or Project Mapping: Script Rule is required to detect whether an issue can be located via JQL Query.

Example

The following ECMAScript (JavaScript) code will run a JQL query to find an issue. The key of the first issue found in the results is set as a value for "issueKey" in the resultMap object. This "issueKey" directive would then ultimately direct JEMH to comment on the existing issue with the processed email. Note that this behaviour is just an example - you could do anything with the returned issue(s).

The below example would match against an issue that has all the following values:

Field A

Field B

Field C

apple

blueberry

carrot

(info) Since JEMH 3.3.21 we lock down access to arbitrary classes in the script context, they cannot be accessed using historic methods:

...

Page Properties
hiddentrue


Related issues