renderedfields HTML response doesn't return full link for attachements

XMLWordPrintable

    • Minor

      Issue Summary

      When calling Jira REST API with expand=renderedFields or expand=renderedBody for comments API the returned HTML doesn't contain full links for any attachments in the content ( like description and comment ). 

      Whereas "@" mentions contain the full URL of the user in the HTML content.

       

      Steps to Reproduce

      1. Create a Jira issue with an Attachment (i.e. image) and a "@" mention of a user
      2. call Jira Get issue rest api with expand=renderedFields 
        curl --location 'https://sitename.atlassian.net/rest/api/3/issue/ABCD-1?expand=renderedFields' \
        --header 'Authorization: Basic ..' 
      1. inspect the description HTML content

       

      Expected Result

      Both attachment and user link should be full link

       

      Actual Result

      User link is like this - containing full site url

      <a href=\"https://sitename.atlassian.net/secure/ViewProfile.jspa?accountId=<<AAID>>\" 

      But, attachment link is like this - only the rest endpoint is present

      <img src=\"/rest/api/3/attachment/content/10112\" 

              Assignee:
              Nikolay Trefilov (Inactive)
              Reporter:
              Nashid Farhad (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: