...
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 | ||||
---|---|---|---|---|
|
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); |
...