Tables not synchronizing properly

Originally asked by Harold Oconitrillo on 23 June 2023 (original question)


Hi,

On occasion, an employee will forward an email to open a ticket in Jira, that has an HTML table embedded in the email. The table is viewable in Jira, but when we synchronize to DevOps, the table is converted to text that looks like HTML code. Any suggestions on how to manage this?

Thanks.


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