saveAttachmentFromEmail
The use of this routine requires the Power Scripts for Jira add-on be installed and licensed.
Description
Saves the attachment file from the incoming email to a specific file path.
Parameters
Return Type
Boolean
'True' if the attachment file was successfully saved to the specified file path, 'false' otherwise.
Example
IncomingEmail mail = getIncomingEmail();
for(string att in mail.attachments) {
saveAttachmentFromEmail(att, "/tmp/guess" + att + ".tmp");
}
See also
Peacock