How do I add attachments to an e-mail with Automation for JIRA

Andreas Knecht Community Champion Mar 06, 2017

Is it possible to add attachments to an e-mail with Automation for JIRA ?

1 answer

1 accepted

0 vote
Andreas Knecht Community Champion Mar 06, 2017

So you can't embed attachments directly in an e-mail (we don't support this due to the fact that attachments in JIRA could be far to large for emails), but you can add links using smart fields.

Here's an example rule:

Project automation - Code Barrel JIRA 2017-03-07 11-12-49.png

So this email body will iterate over all attachments on an issue and produce links that allow recipients to download the attachment directly from JIRA: 

Hi there,


Attachments:
<ul>
{{#issue.fields.attachment}}
<li><a href="{{content}}">{{filename}}</a></li>
{{/issue.fields.attachment}}
</ul>

Cheers,
  Auto
Susan Ostreicher Community Champion Oct 19, 2017

Hello @Andreas Knecht - can this code be adapted to add a comment (instead of an email) with links to all attachments?  Thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Apr 10, 2018 in Marketplace Apps

Learn about how Stefan K. built one of the *first ever* Marketplace apps

In this post you will discover more about the evolution of K15t software, some big topics they're currently focusing on in the app space, and a rare (not not funny!) photo of founders Mike Cannon-Bro...

12,839 views 11 24
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you