Hello, I using Jira Service Management for ticket creation and have set up a webhook to filter statuses such as "approved" and "closed."
The webhook sends this data to global Automation. I’ve created a rule called send-request-HighPriv which uses the components Incoming webhook and Send web request. It uses the HTTP method POST with a custom body where Jira transforms the data into JSON. Here’s an example of the JSON: { "summary": "{{webhookData.issue.fields.summary}}" } I checked the audit log, but I received an error related to special characters. The error message was: Failed to parse the request body as JSON: expected `,` or `}` at line 2 column 34. After investigating, I found that the issue is due to special characters or quotation marks ("") in the summary field, which caused the error. Do you have any recommendations on how to handle this?
Try {{webhookData.issue.fields.summary.jsonEncode}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.