Hello Atlassian Community!
I need help with Automation.
Here's a scenario - user provides data in a comment in this format:
{
"customfield_XXXXX": ["value 1", "value 2", "value 3"],
"customfield_YYYYY": "value Y",
"customfield_ZZZZZ": "Number",
}
Automation uses {{comment.last.body.substringBetween("\"customfield_XXXXX\": [", "],").trim()}} to populate a variable with data and then adds that data to a custom field.
This works for single select field and a number field, but I struggle to add data to multi select field.
Do you have any suggestion on how it should be built in order to populate customfield_XXXXX with provided data?
Thanks!