Given a trigger, Field Value Changed, I want to create a Smart Value (Create Variable) containing a string of filtered label values (label starts with 'team/').
Example:
Issue
- Labels: team/abc team/def another-label
Expected Result: Variable contains
team/abc team/def
I tried the following:
{{#labels}}{{#if({{.}}.startsWith("team/"))}}{{.}} {{/}}{{/}}Error: Could not extract smart value parameter: {{.: {{#labels}}{{#if({{.}}.startsWith("team/"))}}{{.}}{{/}}{{/}}
{{#if(issue.labels.startsWith("team/"))}}{{.}} {{/}}Result: Variable is empty
This works:
{{#labels}}{{.}} {{/}}But returns all the labels.
I know I am close, but the #IF is tripping me up.