Hello,
I created a web automation in Jira where I want it to send me a json with the fixVersions list. It should only contain the id and the released flag. I came up with the following solution. Is there a better solution where I don't have to loop and deal with json formatting?
```
{
"issue_id": "{{issue.id}}",
"issue_key": "{{issue.key}}",
"fixVersions": [
{{#issue.fixVersions}}
{
"id": {{id}},
"released": {{released}}
}{{^last}},{{/}}
{{/}}
]
}
```
or by filtering only the not-released ones
```
{
"issue_id": "{{issue.id}}",
"issue_key": "{{issue.key}}",
"fixVersions": [
{{#issue.fixVersions}}
{{#if(not(released))}}
{
"id": {{id}}
}{{^last}},{{/}}
{{/}}
{{/}}
]
}
```
Thanks
Yusuf