attachAllFilesFromEmail

attachAllFilesFromEmail

 

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

Syntax

attachAllFilesFromEmail(issueKey)

Package

 

Alias

 

Pkg Usage

 

Description

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

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

issueKey

string

Yes

The issue to attach the file to.

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

Peacock

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.