I've tried to find others that have this issue, but I've had no luck. I have an automation that will email and slack out certain tasks to stakeholders when the status of a task changes. It includes the status, and the comments. But the comments aren't pressed nicely, and I want to try and format it better. I want to replace the following entries in comments:
- * - <ul><il> tags
- !xxx! - images removed completely
- [smart-link] with <a> tags
- [accountId] just remove as it doesn't make sense.
Below are a couple of the example comments that get sent out, that I'm trying to format better.
The HTML block I have at the moment, just uses the {{comment.body}} smart value
{{#issue.comments.reverse}}
<div style="background-color: #f9f9f9; padding: 10px; border-radius: 4px; margin-top: 10px; display: flex; align-items: center;">
<img src="{{author.avatarUrls.32x32}}" alt="Avatar" style="padding: 10px; max-width: 32px; max-height: 32px; vertical-align: middle; margin-right: 10px;">
<div>
<p><strong>Comment by:</strong> {{author.displayName}} at: {{created.convertToTimeZone("America/Denver").format("EEE, MMM d h:mm a")}}</p>
<p>{{body}}</p>
</div>
</div>
<br>
{{/issue.comments.reverse}}

