(provisional)matchText(, "[A-Z][A-Z]+-[0-9]+"); // find an issue key in the subject
if(isNull(issueKey)) {
// if no issue key found, create a new issue[]fields {}+"reporter", currentUserKey()assigneecc[0]stringnewIssue=TESTmail.subjectmail.body, 0);
attachAllFilesFromEmail(newIssue);
%newIssue%.watchers = getUserKeysFromEmails(mail.cc);
} else {
// if issue key found in subject, add a comment
addComment(issueKey, currentUserKey(), mail.body
Page Comparison
Manage space
Manage content
Integrations
App links