Text formatting issue GitHub to Jira Cloud

Creating this on behalf of @jcotant

I’m having text formatting issues in the description field from GitHub to Jira Cloud.

GitHub

Jira Cloud

I have tried several methods from the nodeHelper object, including stripHtml and getHtmlField in GitHub, and toMarkDownFromHtml in Jira Cloud. I also tried using replaceAll to replace all the newline characters, but had no success. Is there a workaround for this formatting issue?

Hi @jcotant

Wanted to let you know that I’m working on this and will be providing an update soon.

Best,
Kevin

Awesome to hear – thanks, Kevin!

Best,
Joe

Hi @jcotant

Apologies for the delay.

Both tracker are using Markdown, So there is no need to user any helper. You should get the majority of formatting ok by using

GitHub Outgoing:
replica.description = issue.description

Jcloud incoming:
issue.description = replica.description

That being said, GitHub is using GFM (GitHub Flavored Markdown) which has some differences with the vainilla one used by JCLOUD.

I am currently looking if there way to specify the changes to avoid having stranger formatting when syncing from GitHub to Jcloud.

Best,
Kevin

Thanks so much for the work here, Kevin! Previously we tried the same configuration as you suggested and were still hitting the formatting issues, so perhaps it has to do with the GitHub Flavored Markdown. Let me know if there’s any further info or details I can provide that would help.

Best,

Joe