Customfields formatting bi-directionally from Azure Devops to Jira Cloud

Originally asked by Mathieu Lepoutre on 21 June 2022 (original question)


How to keep the formatting between customfields and comments bi-directionally from Azure Devops - Jira Cloud?


Answer by Mathieu Lepoutre on 21 June 2022

Hi all

Please put this in respective connections.

Jira Cloud Outgoing Sync

replica."formattingtest" = nodeHelper.getHtmlField(issue, "customfield_10051")
replica."reproactual" = nodeHelper.getHtmlField(issue, "customfield_10053") 

replica.comments = nodeHelper.getHtmlComments(issue)

Jira Cloud Incoming Sync

issue."formattingtest" = nodeHelper.toMarkDownFromHtml(replica."formattingtest")
issue."Actual Results" = nodeHelper.toMarkDownFromHtml(replica."reproactual")

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

Azure Devops Outgoing Sync

replica.comments       = workItem.comments

replica."formattingtest" = workItem."Custom.formattingtest"
replica."reproactual" = workItem."Microsoft.VSTS.TCM.ReproSteps"


Azure Devops Incoming Sync

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

workItem."Custom.formattingtest" = replica."formattingtest"
workItem."Microsoft.VSTS.TCM.ReproSteps" = replica."reproactual"



This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.