Hi,
We have a bi-directional synchronization and one portion of it is the mapping of requested_for in ServiceNow, to Reporter in Jira.
The outgoing script is
if (entity.tableName == "sc_task") {
replica.caller_id = nodeHelper.getTableByLink(sc_task.requested_for?.link)?.email
}
and the incoming script:
issue.reporter = nodeHelper.getUserByEmail(replica.caller_id)
Note that I’ve also tried the following outgoing scripts:
if (entity.tableName == "sc_task") {
replica.caller_id = nodeHelper.getTableByLink(entity.requested_for?.link)?.email
}
if (entity.tableName == "sc_task") {
replica.caller_id = nodeHelper.getTableByLink(catalogTask.requested_for?.link)?.email
}
if (entity.tableName == "sc_task") {
replica.customKeys.reporter_email = nodeHelper.getTableByLink(catalogTask.requested_for?.link)?.email
}
But the Reporter field in Jira still fails to be updated, and defaults to the ‘Exalate’ user. Any suggestions?