1
0
-1

How to map Ci data from ServiceNow to Insight Custon fields in JIRA?

ServiceNow sends the data as display_value

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      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


        CommentAdd your comment...