Confluence has been updated to version 6.15.9

GITHUB JIRA CLOUD

Sometimes, text could be formatted incorrectly when syncing GitHub issues and Jira Cloud issues. This could be caused by differences in GitHub Flavored Markdown and Jira Markdown.

You can prevent some text formatting errors during synchronization with Exalate scripts. The scripts convert GitHub Markdown and Jira Cloud Markdown into HTML during outgoing sync. In the incoming sync, HTML is converted into GitHub Flavored Markdown and into Jira Cloud Markdown.


This page is being revised as it is not accurate with the underlying tracker.


In this section

GitHub

Outgoing sync

With this outgoing sync script, you convert the fields you send from GitHub Markdown into HTML. This HTML is later sent to Jira Cloud.

replica.description    = nodeHelper.getHtmlField(issue.description)
replica.comments       = nodeHelper.getHtmlComments(issue.comments)

Script parameters

ParameterDescription

nodeHelper.getHtmlField(issue.description)

Converts issue fields from GitHub Flavored Markdown to HTML. You can replace description with fields that you would like to send

nodeHelper.getHtmlComments(issue.comments)

Converts issue comments from GitHub Flavored Markdown to HTML

Incoming sync

This script converts HTML into GitHub Flavored Markdown.

This script works after you set up conversion from Markdown to HTML in Jira Cloud Outgoing sync.

issue.description  = nodeHelper.toMarkDownFromHtml(replica.description)
issue.comments     = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

Script parameters

ParameterDescription


nodeHelper.toMarkDownFromHtml(replica.description)


Converts issue fields from HTML into Markdown. You can enter the specific field instead of description.

nodeHelper.getHtmlComments(issue.comments)

Converts issue comments from HTML into GitHub Flavored Markdown

Jira Cloud

Outgoing sync

This script converts Jira Cloud Markdown you send into HTML. This HTML will be sent to GitHub.

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

Script parameters

ParameterDescription
nodeHelper.getHtmlField(issue, "description")Converts issue fields from Jira Cloud Markdown to HTML. You can enter an issue field you want to sync instead of

"description"

nodeHelper.getHtmlComments(issue)

Converts comments from Markdown to HTML

Incoming sync

With this

issue.description  = nodeHelper.toMarkDownFromHtml(replica.description)
issue.comments     = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

Script parameters

ParameterDescription

nodeHelper.toMarkDownFromHtml(replica.description)

Converts issue fields from HTML to Markdown. You can replace

description with other issue fields.

nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

Converts comments from HTML to Markdown



Have more questions? Ask the community

See also

Converting data between HTML and Markdown in Jira Cloud




Back to Exalate for GitHub tips and tricks