I have an interesting issue here:
I am trying to send a JSON payload to DataDog to start an Incident (using their On-Call feature).
I send the following payload and it works:
{
"title": "Something Silly Here",
"text": "Maybe some Description Text",
"tags": "team:{{customFields.customfield_15951.asJsonString}}, incident", "source_type_name": "Jira",
"alert_type": "info"
}
However, when I attempt to use additional Smart Values like the below example, I am get an error:
{
"title": "{{issue.summary.asJsonString}}",
"text": "{{issue.description.asJsonString}}",
"tags": "team:{{customFields.customfield_15951.asJsonString}}, incident",
"source_type_name": "Jira",
"alert_type": "info"
}
Error:
Through some trial and error, we were able to get the formatting right for both sides. Tested via https://webhook.site/:
What worked is below:
asJsonString wraps the string in quotes. When it's expanded, you're sending:
{
"title": ""summary"",
"text": ""description"",
"tags": "team:"customfield", insident",
"source_type_name": "Jira",
"alert_type": "info"
}
...which I don't think is what you want. I would remove the quotes wrapping the title and text values and try again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! We discovered this as well. We did find a solution!! (posted separately)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.