I have created an automation that upon issue creation, editing and deletion branches to the parent issue, fetches all the child issues and then sets the components of the parent issue to be an aggregation of all components of the children.
In the last "Edit Issue" action I have this mustache code to do that:
{
"update": {
"components": [
{
"set": [
{{#lookupIssues.components}}
{"name": "{{name}}"}{{#unless @last}},{{/unless @last}}
{{/lookupIssues.components}}
]
}
]
}
} However, this results in invalid JSON and I don't see why that happens.
Any help is much appreciated!