If there are quotes in my incident title, the POST request fails.
Post:
Accept: application/vnd.pagerduty+json;version=2
Content-Type: application/json
{ “incident”: { “type”: “incident”, “title”: ““Something Went Wrong Error” with Warrant report (500 - Database error: YEAR)”,
Error:
“error”: {
“message”: “Object format is unrecognized”,
“status”: “unrecognized object”,
“errors”: [
“JSON parse error”
]
JIRA smart values .quote() allows me to format like this, but it still fails with the same error:
“title”: “\Q"Something Went Wrong Error” with Warrant report (500 - Database error: YEAR)\E",
Update. JIRA asJsonString output also fails:
“title”: “”\“Something Went Wrong Error\” with Warrant report (500 - Database error: YEAR)"",
Please help, I’m stuck. Thanks