I am currently trying to leverage the "Custom data" approach for the "Web request body" for a given Automation trigger event and running into issues producing the "labels" array list of values with quotes ("") around each value:
Scenario #1: "labels" has a single value of "value1":
"labels": [
"{{issue.labels}}"
],
|--> produces for a single value: "value1"
"labels": [
"value1"
],
Scenario #2: "labels" has multiple values of "value1" and "value2":
"labels": [
"{{issue.labels}}"
],
|--> produces both values: "value1" and "value2"
"labels": [
"value1, value2"
],
|-> desired format where each value has quotes ("") around the values:
"labels": [
"value1",
"value2"
],
Attempted this syntax / format:
{{#issue}}"{{labels}}{{^last}}",{{/}}{{/}}
|-> produces this result:
"labels": [
"value1, value2",
],
Let me know if more details would help explain what I am attempting to achieve for multiple labels list.