Ensuring Consistent Display of Images/Files: Challenges and Solutions when Syncing between GitHub and Jira

Originally asked by George Smith on 22 May 2023 (original question)


This is regarding the images/files in the description/comments.

How do I get the images/files to display at the destination exactly the same as it was posted on the source?

When syncing from GitHub to Jira, although the images/files are not displayed, a link to the images/files is provided after the placeholders, so there is still a way to view the images/files.

However, when syncing from Jira to GitHub, the images/files are not displayed, it is just placeholders, so there is no other way to view the images/files from here.


Answer by Syed Majid Hassan on 02 June 2023

Hi George,

Unfortunately, Exalate does not currently support images/files on GitHub.

Having said that, you might be able to get around it by displaying a link that can be accessed in GitHub by any user who has access to Jira.

For this to work, I have tried the following

Outgoing in Jira:

replica.description = nodeHelper.getHtmlField(issue, “description”)

Incoming in GitHub:

def a = replica.description.split(“src=”)[1].split(“\”")[1]
a = “https://syedhassan.atlassian.net”+a
issue.description = replica.description + “\n\n” + a

Please change the base URL of your Jira instance for this to work.

Thanks

Majid