1
0
-1
2 answers
- 10-1
Right configuration:
def remoteAssignmentGroup = replica.customFields."11410"?.value?.value
incident.assignment_group = nodeHelper.getReference("sys_user_group", "name", remoteAssignmentGroup)?.sys_idAdd your comment... - 10-1
def remoteAssignmentGroup = replica.customFields."11410"?.value
remoteAssignmentGroup is a hubOption (com.exalate.basic.domain.hubobject.v1.BasicHubOption@b319ba65]
You will need to get the value out of it by doingdef remoteAssignmentGroup = replica.customFields."11410"?.value?.value
Give it a try
Add your comment...
Hello,
I've got following error while sending new INC from Jira to be created in ServicNow:
Script error details: No signature of method: services.node.hubobjects.NodeHelper.getReference() is applicable for argument types: (String, String, com.exalate.basic.domain.hubobject.v1.BasicHubOption) values: [assignment_group, name, com.exalate.basic.domain.hubobject.v1.BasicHubOption@b319ba65] Possible solutions: getReference(java.lang.String, java.lang.String, java.lang.String). Error line: Script30.groovy:28
Outgoing script in Jira is here:
Incoming rule in SN looks as here:
and payload from Jira to SN here: