-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Low
-
Component/s: Rule - Smart Values
-
Severity 3 - Minor
-
Jira Software, Jira Service Management, Jira Work Management
Issue Summary
The comment's body HTML doesn't include complete attachment URLs but just a part of it.
Steps to Reproduce
- Create an Automation rule to print a comment's body in HTML
- Add a comment including an image
- Evidence that the resulting HTML includes an incomplete URL in the src tag.
Expected Results
A complete URL in the src tag, such as:
<p><span class="image-wrap" style=""><img src="https://<instance_name>.atlassian.net/rest/api/3/attachment/content/10502" alt="image009-houzz.png" height="84" width="84" style="border: 0px solid black" /></span></p>
Actual Results
<p><span class="image-wrap" style=""><img src="/rest/api/3/attachment/content/10502" alt="image009-houzz.png" height="84" width="84" style="border: 0px solid black" /></span></p>
Workaround
URLs can be replaced in the body by hardcoding the right instance name.
{{body.html.replace("/rest/api/3/attachment/content/","https://<instance_name>.atlassian.net/rest/api/3/attachment/content/")}}