Skip to end of banner
Go to start of banner

attachAllFilesFromEmail (Power Scripts)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The use of this routine requires the Power Scripts for Jira add-on be installed and licensed.

Description

Attaches all attachments from the incoming email to a specific issue.

Parameters

Return Type

Number

Attaches all attachments from the incoming email to a specific issue.

Example

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

See also

We've encountered an issue exporting this macro. Please try exporting this page again later.
  • No labels