-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Component/s: Work Item - Backend - Rich Text
-
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
- Create a Jira issue with an Attachment (i.e. image) and a "@" mention of a user
- 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 ..'
- 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\"