-
Bug
-
Resolution: Unresolved
-
Medium
-
1
-
Minor
-
Issue Summary
When an inline attachment is added to the description of a Jira issue, and the issue is subsequently fetched through the API with the description field set to be rendered, the renderedFields property in the API response contains HTML error messages instead of properly rendering the attachment reference.
Steps to Reproduce
- Create a new Jira issue.
- Add an inline attachment (for example, a zip file) to the issue's description. Ensure to change the view to display the attachment inline (see attached image: inline.jpeg)
- Perform a GET request to the Jira REST API to fetch the issue details, specifically requesting the description field and expanding the rendered fields.
curl --location 'https://yoursite.atlassian.net/rest/api/3/issue/TEST-11?fields=description&expand=renderedFields' \ --header 'Accept: application/json' \ --header 'Authorization: Basic xxxxx' \ --header 'Cookie:'
Expected Results
The renderedFields property in the API response should correctly display the inline attachment or a placeholder/link to it within the description, without any HTML error messages.
Actual Results
The renderedFields property, specifically the description field, contains HTML error messages. The expected inline attachment display is replaced with error codes within span tags indicating a failure to render the attachment correctly. An example of the erroneous output is as follows:
"renderedFields": { "description": "<p>This is a test </p>\n\n\n\n<p><span class=\"error\">[^524f6d51-e4fb-475b-9122-24e283d1a95f]</span> </p>\n\n\n\n<p>inline </p>" }
Workaround
Until a fix is deployed, a potential workaround is to avoid using inline attachments in issue descriptions where the content will be accessed via the API. Alternatively, accessing the description content directly (without rendering) still allows for manual parsing and handling, albeit with additional processing overhead.
- is related to
-
JRACLOUD-83203 [Tracked in Issue Links] Jira Cloud bugs re expand=renderedFields
- Gathering Interest
- relates to
-
JRACLOUD-83203 [Tracked in Issue Links] Jira Cloud bugs re expand=renderedFields
- Gathering Interest