Convert HTML to Wiki

Originally asked by Ariel Mears on 16 March 2021 (original question)


I currently use a add-in called JEditor in one instance of Jira and in another we just use the default wiki. I would like to sync up both instances but when I review the issue in the second instance, I see html. Does anyone know how to convert this html to wiki?


Answer by Francis Martens (Exalate) on 05 April 2021

Hi Ariel Mears

We created a new repository which can be used to convert between wiki and html. There are examples how to convert comments in the readme file.

Check repository here


Answer by Francis Martens (Exalate) on 16 March 2021

Hi Ariel Mears

We just published this piece of content which can also be used between 2 jira’s
https://community.servicenow.com/community?id=community_article&sys_id=5566161fdb3264103daa1ea668961981

It might not work 100% for jeditor fields, but the approach should be clear


Comments:

Ariel Mears commented on 17 March 2021

How can I use this with comments?

Francis Martens (Exalate) commented on 17 March 2021

Euh - apply the method on comments by using the closure of mergeComments.
Something like

issue.comments = commentHelper.mergeComments(issue, replica, {

         // perform conversion here

         })

There are a couple of examples on the documentation site.
Also checkout our exalate partners for expert advise.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.