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
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.