How to preserve text formatting Jira On Premise and Azure DevOps

Originally asked by Jason Sturm on 01 February 2023 (original question)


I am synchronizing between Azure DevOps and Jira On Premise and I need to know the correct script(s) in order to sync fields such as description and comments while preserving rich text/wysiwyg formatting?


Answer by Jesper Rindshøj on 06 February 2024

I experience that using this scripts doesn’t help me sync Description and comments between DevOps and Jira.

Text is set up in DevOps with nice line shift, bullits and and other text features. When receiving in Jira its just a text string…

Should it keep i.e. Lineshift ?


Answer by Mathieu Lepoutre on 04 December 2023

The issue you’re experiencing is due to format differences between Jira and Azure DevOps.

To manage this, you can use Exalate scripts to convert data from HTML in Jira to markdown in Azure DevOps and vice versa.

For the Jira Cloud Outgoing Sync, use:

replica.description = nodeHelper.getHtmlField(issue, "description")


For the Incoming Sync to Azure DevOps, use:

issue.description = nodeHelper.toMarkDownFromHtml(replica.description)


You replace “description” with the specific issue field you want to sync.

ref: how to convert data between HTML and Markdown in Jira Cloud

Thank you.

Kind regards,
Mathieu Lepoutre