-
Suggestion
-
Resolution: Duplicate
-
1
-
Issue Summary
Links to files/images in comments are broken while sending an email using Automation
Steps to Reproduce
- Create an automation rule that is triggered when a comment is added
- Add an action that sends an email with the comment like
{{#issue.comments.reverse}} {{body.html}} {{/}}
- Save the rule and add a comment on a ticket with an image.
Expected Results
The comments are sent over along with attachments.
Actual Results
The links are invalid and users can't access the attachment via email. Right below follows an example of the link that is sent via email:
img src="/secure/attachment/ID/NAME
Workaround
We can use the following regex to exclude images from the comment:
{{#issue.comments.reverse}} {{body.replaceAll("![^\s!][^!]+[^\s!]+[!]", " ")}} {{/}}
ps. If we use the regex above we can't convert the comment from Wiki to HTML.
- duplicates
-
AUTO-132 Allow Copy attachments from a specific issue in Cloud Automation for Jira - support copying attachments during clone/create/edit/transition
- Closed