How to include images / attachments in HTML field sync DevOps to JIRA Cloud?

Originally asked by Michael Hofer on 25 January 2022 (original question)


Hi, we are trying to two-way sync between DevOps work items and Jira issues. When syncing HTML fields such as “Description” or “ReproSteps” we are able to preserve the HTML formatting (bold, emojis etc.) using “nodeHelper.toMarkDownFromHtml” on the Jira side. However, all images / attachments are lost.

What is the correct way to transfer the full HTML content from DevOps to Jira cloud (and also, what is the way back, because this will be the next task).