Versions Compared

Key

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

...

titleAvailability

...

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

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

attachAllFilesFromEmail(issueKey)

Package

Alias

Pkg Usage

Description

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

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

issueKey

string

Yes

The issue to attach the file to.

Return

...

Type

number

Returns the number of files successfully attached to the Number

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

Example

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

See also

Filter by label (Content by label)
showLabelsfalse
max425
showSpacefalse
cqllabel = "mail_handler_routine" and space = currentSpace ( )
labelsjira_comment_routinearray_routines

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