Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Attaching all files from last comment

One of the most typical requirements is to send files attached with the latest comment in Jira or ServiceDesk to customer email.

In Jira or SD comment, files can be added as regular attachments or inline. Moreover, when adding file inline, it could contain both - an optional thumbnail in the comment text and the full version which will open when clicking on the thumbnail. Normally, the Jira or SD will require user to log-in to the portal to download the attachments.

With Raley Notifications you can handle comment attachments much better - all of them will be added as first class email attachments (both regular and inline). This code snippet below will do the magic for you:

Code Block
linenumberstrue
#foreach ($att in $issue.lastcomment.attachments)
   $jirassimo.includeAttachment($att.id) 
#end


Attaching ALL files that are uploaded to specific ticket

...

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

Attaching all files from last comment

One of the most typical requirements is to send files attached with the latest comment in Jira or ServiceDesk to customer email. In Jira/SD comment files can be added as regular attachments or inline. Moreover, when adding file inline, it could contain both - an optional thumbnail in the comment text and the full version which will open when clicking on the thumbnail.

Raley will do all the heavy duty for you and add both regular and inline attachments to your email. Here's the example on how to send all the files from last comment. 

...

linenumberstrue

...