Hi there,
I am having a hard time copying a nested JSON value from one issue to another.
The field value looks like this
{
options: [
[{"id": "0", "name": "Option 1"}],
[{"id": "2", "name": "Option 2"}, {"id": "3", "name": "Option 3"}],
[{"id": "4", "name": "Option 4"}
]
}
The number of levels (inner list) and options (id, name) can vary.
I simply want to copy the whole value, but when I do something like this
{
"fields": {
"Foo bar": {{issue.fields."Foo bar"}}
}
}
{
"fields": {
"Foo bar": { options: {{issue.fields."Foo bar".options}} }
}
}
I get this error: "Error while parsing additional fields. Not valid JSON."
Is it possible to correctly handle nested objects with smart values in automation?