Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
Morning, I am trying to push the display value of the "assignee" in Jira to a String field in Servicenow. I have tried to do the simple mapping, but all that did was to display the key.
OUTGOING JIRA
replica.assignee = issue.assignee
INCOMING SERVICENOW
entity.u_assigned_to_in_jira = replica.assignee
I have then found a community post from Francis that advises the following code (which I have updated for my instance)
entity.u_assigned_to_in_jira = nodeHelper.getUserByEmail(replica.assignee?.email)?.key
But this only populates the sys_id of the user in the field, rather than the name.
Ideally I would like just the simple display value pushing from Jira, as we may have the situation that some Jira users are not listed in ServiceNow, so the 2nd solution would not work