DevOps > Jira Attachments

Originally asked by nick watts on 25 September 2020 (original question)


Hi

Jira > DevOps integration = Images attached to comments sync across and appear in the links tab.

DevOps > Jira integration = images do not sync across when syncing, either from comments of attached in the description.

Has anyone encountered this?

Thanks


Answer by Francis Martens (Exalate) on 26 September 2020

This is indeed the case and on our roadmap to improve on
It is a bit of a pain as Azure DevOps doesn’t provide REST access to inline attachments …

There is a similar problem syncing zendesk inline attachments. Check following post
How to transfer inline attachments from zendesk to jira (old community)


Hi everyone, just checking in to see if there are any updates.
It’s been a little while, and I wanted to follow up.

Thanks in advance!

Hi @Angel_Hidalgo ,

I have run testing with the following, and it has worked for me and my colleague locally here. Could you please check this out and let me know the result?

//ADO Outgoing sync script:
replica.description    = workItem.description
replica.comments       = workItem.comments

//ADO Incoming sync script:
workItem.description  = replica.description
workItem.comments     = commentHelper.mergeComments(workItem, replica)

//JC outgoing sync script:
replica.description = nodeHelper.getHtmlField(issue, "description")
replica.comments = nodeHelper.getHtmlComments(issue)

//JC incoming sync script:  
issue.description  = nodeHelper.toMarkDownFromHtml(replica.description)
issue.comments     = nodeHelper.toMarkDownComments(commentHelper.mergeComments(issue, replica))

Kind regards,
Ashar
Exalate

1 Like