I'm attempting to capture name-value pairs from an Incoming webhook event, and while most values in {{webhookData}} are a typical/expected JSON structure, the webhookData.audit.changes element is a an array, of two objects per element, where
first object is {"field_name":"<fieldname>"}
second object is {"value":"<value>"}
and it's not clear how I would parse this in Jira Automation. So far, I'm reviewing the Advanced Branching to assign {{webhookData.audit.changes}} to a variable, but I think there is some json parsing or list iterating needed after that, and either converting to name:value pairs in a new json object, or dynamically using Create Variable (although it seems we cannot dynamically create names there).
Example
"changes" : [
{"field_name":"Name", "value":"test4"},
{"field_name":"Description", "value":"<div class=\"user-content\"><p>desc</p></div>"},
{"field_name":"Workspace", "value":"OPTEM Templates"}
]
Any suggestions on how to convert the data so it can be accessed like this?
{{changes.name}}
{{changes.description}}
{{changes.workspace}}Thanks ahead!