Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 10

...

Code Block
IncomingEmail email = getIncomingEmail();

string issueKey = matchText(email.subject, "[A-Z][A-Z]+-[0-9]+"); // find an issue key in the subject
if(isNotNull(issueKey)) {
    attachAllFilesFromEmail(issueKey);
}
Info

See the Predefined Structures page for more information about the JEmailAttachment structure used in this example.

See also

Filter by label (Content by label)
showLabelsfalse
max4
showSpacefalse
cqllabel = "mail_handler_routines"
labelsjira_comment_routine