Hello Team,
Is it possible to add loop inside JSON format?
I have a field called "Checklist" and would like to copy the checklist value to another checklist using Automation.
Below is the JSON format for single item addition,(this is working fine)
{
"update": {
"<source checklist>": [
{
"add": [
{
"name": "{{issue.<destination checklist>}}"
}
]
}
]
}
}
But if I want to add multiple items using below loop inside the Json which is not getting as expected.
{{#issue.<destination checklist>}}
{{name}}
{{/}}
The below part should run as a loop,
{
"name": "{{issue.<destination checklist>}}"
}
I used my Json as below format with no luck,
{
"update": {
"<source checklist>": [
{
"add": [
{{#issue.<destination checklist>}}
{
"name": "{{name}}"
}
{{/}}
]
}
]
}
}
Any help is appreciated.
Thanks in Advance !