Error adding comment to issue Comment body can not be empty! (comment)

Edwin Andrew February 25, 2025

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}}

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 25, 2025

Hi @Edwin Andrew 

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:

  • what type of project is this (e.g., company-managed, team-managed, etc.), 
  • an image of your complete automation rule in a single image for continuity,
  • images of any relevant actions / conditions / branches,
  • an image of the audit log details showing the rule execution, and
  • explain what is not working as expected and why you believe that to be the case.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events