Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How-to add attachment file to email via automation Smart fields

Mackowiak
Contributor
June 2, 2020

Hello, 

I'm running on Cloud.

I would like to send a mail to reporter where the attached file is available, I mean not a link but as attached file to the mail.

The objectif is to be able to send it to external members, who is not jira user and will not be jira users as it may be notified only once.

Regards.

Guillaume.

 

 

 

 

1 answer

1 vote
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2020

Hello @Mackowiak

Thank you for reaching out.

Unfortunately, Jira automation does not have a smart value to add an attachment value to the e-mail notification action. The only available smart values for Attachments are the ones listed in this documentation:

  • filename {{attachment.filename}}: the filename of the attachment.

  • mimeType {{attachment.mimeType}}: the file format of the attachment.

  • author {{attachment.author}}: the user who added the attachment.

  • created {{attachment.created}}: the date and time the attachment was added to the issue.

  • size {{attachment.size}}: the attachment file size in bytes.

That being said, we have the following feature request to implement a smart value to map attachments files to e-mail notifications actions in Jira Automation:

Attach a file to an email 

Please, keep an eye in the mentioned feature request to know any updates about its implementation.

Let us know if you have any questions.

Florian Schüller
Contributor
May 6, 2024

Hi @Petter Gonçalves ,

is there a way to list only the attachments that have actually been shared with the customer? In the provided example, all attachments from the issue are listed, not just those visible to the customer on the portal.

{{#issue.attachment}}
<li>{{filename}}</li>
{{/issue.attachment}}

 

I am using this in a Jira automation email but I only want to list those attachments that have been shared with the customer.

 

best regards,

flo

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events