1
0
-1

I am synchronizing between Azure DevOps and Jira On Premise and I need to know the correct script(s) in order to sync fields such as description and comments while preserving rich text/wysiwyg formatting?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      I experience that using this scripts doesn't help me sync Description and comments between DevOps and Jira. 


      Text is set up in DevOps with nice line shift, bullits and and other text features. When receiving in Jira its just a text string.....


      Should it keep i.e. Lineshift ?


        CommentAdd your comment...
      1.  
        1
        0
        -1

        The issue you're experiencing is due to format differences between Jira and Azure DevOps. 


        To manage this, you can use Exalate scripts to convert data from HTML in Jira to markdown in Azure DevOps and vice versa. 



        For the Jira Cloud Outgoing Sync, use:

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

        For the Incoming Sync to Azure DevOps, use:

        issue.description = nodeHelper.toMarkDownFromHtml(replica.description)
        
        

        You replace "description" with the specific issue field you want to sync. 


        ref: how to convert data between HTML and Markdown in Jira Cloud 


        Thank you.

        Kind regards,
        Mathieu Lepoutre

          CommentAdd your comment...