Hi Guys,
Need your help in setting up an automation rule.
Trigger : When issue is comment
Action : Automation send email to an email with all the details of last comments including body and attachment.
I am able to send comment body and attachment hyperlink.
Is it possible to show hyperlink or attached screenshot in email instead of showing the break screenshot like this :
Community moderators have prevented the ability to post new answers.
Following up on your last question from the other answer to find the attachments added with the last comment, for workarounds there is a "simple, mostly accurate" way:
Let's assume the time from creating the comment and posting the attachments in the body is less than 10 seconds (or some figure you decide). The attachments added within that time interval could be found using a date / time difference between the attachment created and now smart values.
{{#issue.attachment}}
{{#if(created.diff(now).seconds.lt(10))}}
{{content}} -- {{filename}};
{{/}}
{{/}}
Larger attachments take longer to add, as does writing a non-trivial comment. So perhaps change the time interval to 60 seconds, or whatever threshold you want.
Kind regards,
Bill
Thank you for this solution, @Bill Sheboy
The link created by this approach allows licensed Jira users to download the attachment file. Is it possible to modify the URL to provide a portal-facing link accessible to unlicensed users in the Customer role?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Chris Troyer, this topic has been locked because the thread has become a bit dated. If you’d like to keep the conversation going or have additional questions, we encourage you to start a new topic. You can read more about necro posting (“raising threads from the dead”) in our Community Guidelines.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikrant,
Welcome to the community :)
Through native means, automation for Jira currently doesn't support uploading attachments in the 'Send email' action.
The only workaround we currently have is to embed the URL of the attachments on an issue into the email.
We have raised a feature request with our developers to provide this feature;
Please consider voting and watching the feature request so that our product team can evaluate the demand for this request.
Also few things tried here : https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-do-I-add-attachments-to-an-e-mail-with-Automation-for-JIRA/qaq-p/6556
Thank You,
Prachi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Prachi Bolar I am using this smartvalue for in email body.
{{issue.comments.last.body.html}}
Attachments:
<ul>
{{#issue.attachment.last}}
<li><a href="{{content}}">{{filename}}</a></li>
{{/issue.attachment.last}}
</ul>
For Attachment it's fine, I am getting the attachment link but getting link for last attachment only.
If user is adding two or more attachment in single comment, it only send the last one, not all attachment added in last comment.
I need to attachment link for only those attachment added in a last comment.
System should not show broken attachment name, instead of it, how i can replace attachment. link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.