I'm trying to set the Description field of a ServiceNow Incident ticket through Splunk, and the string I'm passing contains a newline (\n). But when Splunk creates/updates the ticket, either through the snowincident command or an action alert, it will automatically escape the backslash character. So after Splunk passes the info to snow, the underlying json of the ticket looks like this:
{"description":"this is a \\n new line"}
and my Description field looks like this:
this is a \n new line
Is this something that Splunk is doing, or the ServiceNow Add-On? Does anyone know of a way to get around this?
Also requesting a working way of adding newline to description in a servicenow incident generated by this addon