Originally asked by Andrew on 23 February 2021 (original question)
Hello Community,
I have following INC payload coming from Jira SD:
“customKeys”: {
“CI”: “abo20001”
},
CI record with above name (“abo20001”) exists on SN side, and I would like to store it on a INC record in SN. My incoming script for it looks as below:
if (replica.customFields.“customKeys”?.CI != null)
{
def remote\_CI \= replica.customFields."customKeys"?.CI
incident.description \= remote\_CI
incident.cmdb\_ci \= nodeHelper.getReference("cmdb\_ci", "cmdb\_ci", replica.customFields."customKeys"?.CI)
}
For test reason, temporary I would like to store “CI” in description and cmdb_ci fields, but none of this works.
Please suggest right solution