Originally asked by Patrick Mennecke on 08 March 2021 (original question)
How to map Ci data from ServiceNow to Insight Custon fields in JIRA?
ServiceNow sends the data as display_value
Originally asked by Patrick Mennecke on 08 March 2021 (original question)
How to map Ci data from ServiceNow to Insight Custon fields in JIRA?
ServiceNow sends the data as display_value
Answer by Francis Martens (Exalate) on 10 March 2021
Hi Patrick Mennecke
Check the blog on setting the insight custom field
https://exalate.com/blog/synchronize-insight-objects/
Of course you need to be able to know what value to set.
assume that you have a field on your replica ‘cmdbentry’, you can then inspect the value by using the debug.error
debug.error("CMDB entry = ${replica.cmdbEntry}")
Probably it will return a map
CMDB entry = [ … “display_value”:“Printer” …]
To extract that value use a get
debug.error("CMDB entry = ${replica.cmdbEntry?.display_value}")
Be sure to use the safe navigator operator to avoid null pointer entries