In some previous steps, I perform a web request to Jira's API. The data I get back is okay.
{{#webhookResponse.body.issues}} | {{key}} | {{fields.summary}} | {{fields.customfield_12930}} | {{/}}Now I want to provide this to a PUT to update a field:
{
"fields" : {
"description" : {{#webhookResponse.body.issues}} | {{key}} | {{fields.summary}} | {{fields.customfield_12930}} | {{/}}
}
} I need to asJSONString quote the {{#webhookResponse.body.issues}}...{{/}} section as wrapping in "" would break if the content includes quotes.
Neither {{#webhookResponse.body.issues.asJsonString}} or {{#webhookResponse.body.issues}}...{{/webhookResponse.body.issues.asJsonString}} works.
So how do I wrap {{#webhookResponse.body.issues}} in asJsonString?
This seems like an easy question... not sure why it's eluding me!