Versions Compared

Key

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

...

You may want to create multiple issues from a single email based on the email recipients. For example, a customer might CC another email address within your organisation specific to a different Jira Project. In this case, one email should create two issues, one for each recipient.

Implementation

Manual

...

Status
colourGreen
titleSince 3.4.11

The jemhUtils class can be used to create a list of Result Maps for each Catch Email address match in the email. This is specific to the Profile the script is used in. Please see the following example:

...

Code Block
var resultSetList = jemhUtils.createResultSetForEachMailboxAddress();
jemhMapperUtils.findProjectForResultMaps(resultSetList);

var user = userManager.getUserByName("admin");
var customFieldId = "customfield_10122";
var customField = customFieldManager.getCustomFieldObject(customFieldId);
jemhThreadUtils.resolveAssociatedIssuesViaMessageId(resultSetList, user, customField, false);
jemhThreadUtils.resolveAssociatedIssueViaMessageId(resultMap, user, customField, false);
jemhMapperUtils.applyProjectMappingDomainRules(resultSetList);

...