Jira Automation Mails

Fede Valotta September 29, 2021

Hello everyone,

I am trying to solve 2 problems.

 

Issue 1. When we send a Link through comments, and we recieve an automated email, all those "links", aren't coming out as LINKS, right now it is coming as a normal text (YELLOW)

Issue 2. Is there a way for attachments to show up as images? (My attachments are always images), right now it shows me either a long text, or a broken img (RED)

test.png

 

Code right now:

 

 

{{issue.assignee.displayName}} completó la tarea {{issue.summary}}

{{issue.comments}}

<img src="https://example.com/jira/secure/attachment/{{issue.fields.attachment.id}}/{{issue.fields.attachment.filename}}">{{issue.fields.attachment.filename}}</img>

{{attachment}}

 

 

 

1 answer

0 votes
Support Team [Clearvision]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2021

Hi Fede

For issue 2 one thing you could try in your send email content is the following:

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

That will give a list of attachment names and link. I don't think you would be able to have an image as the link as the email client would not have permission to it

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events