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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.