xl8bot
1
Originally asked by Aditya Maddala on 05 January 2023 (original question)
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)
xl8bot
2
Answer by Aditya Maddala on 10 January 2023
Ariel Aguilar Can you help with the above request ?
xl8bot
3
Answer by Aditya Maddala on 09 January 2023
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.
Comments:
Support commented on 12 January 2023
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.
xl8bot
Closed
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.