1
0
-1

Assignee is not getting sync from Azure Devops to Jira server. Its working from Jira to Azure Devops. Here is the code i'm trying to use. 


Outgoing Sync (Azure DevOps)


replica.assignee       = workItem.assignee 


Incoming Sync (Jira Server)


issue.assignee     = nodeHelper.getUserByEmail(replica.assignee?.email)

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Ariel Aguilar Can you help with the above request ?

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

        Hi, Please suggest if the above code is wrong ? or we have to try in different ways while syncing from Azure Devops to Jira server.

        1. Support

          Please try to implement the following, but must take into consideration if the user does have the same email address on both sides, you can try:

          workItem.assignee = nodeHelper.getUserByEmail(replica.assignee?.email) ?: null


          If the user does not have the same email address on both sides, you can use this one instead:

          workItem.assignee = nodeHelper.getUserByFullName(replica.assigned_to?.display_value)

          Let me know when need further assistance.


        CommentAdd your comment...