1
0
-1

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

    CommentAdd your comment...

    1 answer

    1.  
      5
      4
      3

      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"
      
      
        CommentAdd your comment...