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 !
Hi Yogesh,
Please take a look at the Automation for Jira documentation of our Checklist App here.
It should help you understand how to format the JSON properly for it to work!
Kind regards,
Maxime
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.