Unsure why this function won't print test. As its identified as an empty comment when trying to use Jira Automation - Comment on Issue.
{{#lookupIssues}}
{{#if(labels.contains("Unplanned_Downtime"))}}
test
{{/}}
{{/lookupIssues}}
Short answer: the labels smart value is a list of values, and there is no contains() function for lists or text. Please try using the match() function with a regular expression.
If that does not help, context is important for the community to help. Please post the following:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.