Copying description from Jira to DevOps maintaining nice format and images

Hello,

Im trying to populate the DevOps ticket with the description from Jira when i exalate, i had used just plain description to description, i hade use also nodeHelperHTML to transform the Jira description into HTML and then paste it on DevOps, both this options just copy a horrible looking version of the description into DevOps without format or pictures.

Ive also tried to use code
workItem.description = nodeHelper.toMarkDownFromHtml(replica.description)

on devops, but its generating an error, so not working.

Any help on this matter will be appreciated

Thanks
!

The Jira is a DC or cloud please?

Hi @Lautaro
I think this is between Jcloud and ADO, if that is the case here is the script:

JC outgoing sync script:

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

ADO Incoming sync script:

workItem.description = replica.description
workItem.comments = commentHelper.mergeComments(workItem, replica)

And in case if you want from ADO to Jira cloud then the script would be:

ADO Outgoing sync script:

replica.description = workItem.description
replica.comments = workItem.comments

JC incoming sync script:

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

Thanks,
Sonal

Hello! Its Cloud, thanks

Hello! I tried that, i forgot to mention (only the description as i dont care about transferring the commments).

And that will transfer the format somehow OK, however it wont transfer any images that are on the description, those images will appear as ![image-20250715-060636.png] in DevOps instead of the actual image.

Thanks!

Hi @Lautaro

Can you please confirm what is the Exalate version of Jira Cloud and ADO?

Thanks,
Sonal

How do i check what the version of exalate is?

I was able to fix this by adding attachment in outgoing and incoming.

Thats great , thanks for the update !