Raley notification allows you to send files added into Jira issue or ServiceDesk request as first-class email attachments. Here are the examples and explanations of the different ways attachments can be added.
$jirassimo.includeAttachment("") |
$jirassimo.includeAttachment("*.pdf") |
Instead of "pdf" you can specify any other file extension
#foreach ($att in $!issue.fields.attachment) #if ($!att.filename.startsWith("invoice")) $jirassimo.includeAttachment($att.id) #end #end |
The snippet above will attach only those files which filename starts with the word "invoice". You can add any custom logic in Velocity format hereĀ to check against author, size, mimeType and filename