-
Bug
-
Resolution: Timed out
-
Low
-
1
-
Minor
-
Issue Summary
The old issue view lets you add an inline image in wiki markup to a non-existent attachment. The attachment will be displayed correctly if it is uploaded later. In the new issue view the attachment will not display correctly.
Steps to Reproduce
- Add an inline image in the Description field of an issue on the old issue view, using wiki markup such as
!image.png!
Make sure the image file is not currently attached to the issue. The description will be rendered as "Unable to render embedded object: File (image.png) not found".
- Attach the missing image file to the issue and refresh the old issue view. The inline image should be displayed correctly.
This is a problem because when you create an issue using the REST API, you cannot pass attachments to the POST /rest/api/2/issue endpoint, so you first pass the Description as a wiki-markup string, and only after can you add the related attachments. Which means inline attachments will show just fine on the newly created issue under the old issue view, but not under the new issue view.
Same thing of course if you set the Description field using the PUT API. You'd need to first make sure to copy all the required attachments, which is not intuitive.
Expected Results
The attachment displays in the new issue view after the file is uploaded
Actual Results
The attachment fails to display.
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available