Originally asked by Harold Oconitrillo on 31 August 2023 (original question)
I checked the community and found not an answer to my question.
My code is the following:
def defaultUser = nodeHelper.getUserByFullName(replica.assignee.displayName)
issue.reporter = nodeHelper.getUserByEmail(replica.reporter?.email) ?: defaultUser
issue.assignee = nodeHelper.getUserByEmail(replica.assignee?.email) ?: defaultUser
I am syncing the user between two Jira instances.
Due to the fact, that in the source Jira system the assignee is “unassigned” the user is not in the replica, and I am running into an error.
Could you please help me out here?