Originally asked by Riddhi on 18 October 2023 (original question)
- *In JIRA and Azure DevOps works two different teams.*Some of the users are members of both teams, but there are users who are members only of the JIRA team or only of the DevOps team.
- If there exists a possibility that in JIRA in field Assignee, we have user AAA, who doesn’t exist in DevOps, and during synch in DevOps appears default user BBB.
- Now we have in script:
def defaultUser = nodeHelper.getUserByEmail(BBB@ebicom.pl)
workItem.assignee = nodeHelper.getUserByEmail(replica.assignee?.email,“AXPO”) ?: defaultUser
- But it work only if in JIRA the field assignee is empty. If there is any user who doesn’t exist in DevOps we have ERROR in synch.