The comment's body HTML doesn't include complete attachment URLs

XMLWordPrintable

    • 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

      1. Create an Automation rule to print a comment's body in HTML
      2. Add a comment including an image
      3. 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/")}}

            Assignee:
            Unassigned
            Reporter:
            Alejandro Scuncia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: