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?
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.
We are facing a similar issue so this thread has been very helpful, thank you
After implementing this solution, indeed the description looks better in Jira at first but on the next sync from Jira to Github, the description is being updated again and we are looking the original formatting
Please correct me if im wrong, but I understand that the formatting is showing properly on the first time but as soon as there is update it changes back.
If this is is the case, could you please share with me the your incoming sync on Github? (assuming that the formatting issues on GitHub).
Just following up on this topic, where you able solved it?
Something worth checking is to see if you are not managing the description on the first sync part and then again outside the first sync.
Because, if you fixed the description (changing the formatting) inside the first sync block but you have the old line outside the first sync block, Exalate will be using other formatting for every update.
Ex.
If (firstSync){
issue.description = nodeHelper.toMarkDownFromHtml(replica.description)
}
//This block will only execute during the exalate event.
issue.description = replica.description
//This will execute every time there is an update, and will be overwrite the one on the firstSync block, modifying the format.
Thank you for the follow up
I was able to fix the situation to only update the description during the first sync, it’s not perfect but at least we are impacting the public issue in Github
I‘ll try to do more test at some point but for now I think we are good