Unresolved
Tara TjandraMay 3, 2022 at 11:46 PM
This is a known issue where Jimmy has introduced a patch we refer to as an “unknown media conversion”. Long story short, we can detect cases where wiki → ADF conversion has failed due to the attachment not existing at the time of content creation and trigger a reconversion on the fly. If we detect that the attachment has now been uploaded, we can relink it and generate ADF that will contain the media item. Happy to elaborate more on technical details if you are interested.
This was also introduced around 2020 so I’m thinking the lack of news on this ticket means our patch fixes most use cases.
If you use the POST /rest/api/2/issue/{issueIdOrKey}/comment endpoint to add a comment to an issue, and that comment includes wiki markup that shows an attachment (e.g. an inline image), for example:
then the comment will show the image properly on the old issue view but not on the new issue view.
This is becoming a blocker issue now that the New Issue View is the default.
This happens if the attachment doesn’t exist at the time the comment is added, because the new issue view looks up the attachment when the comment is added instead of when it is displayed.
The same problem happens when setting the Description or any text custom field with wiki markup rendering.
This is a big issue especially when creating new issues, because you cannot copy attachments before the issue is created, so if the description refers to an attachment, it will fail to display the attachment properly since the attachment will be added after the issue creation (and thus after the description is set).