...
...
The use of this routine requires the Power Scripts for Jira add-on be installed and licensed.
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | attachAllFilesFromEmail(issueKey) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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) |
---|
showLabels | false |
---|
max | 425 |
---|
showSpace | false |
---|
cql | label = "mail_handler_routine" and space = currentSpace ( ) |
---|
labels | jira_comment_routinearray_routines |
---|
|
We've encountered an issue exporting this macro. Please try exporting this page again later.