Count all the comments on a story that have a matching expression in them

Kunal Kumar February 7, 2025

I am looking to create an automation rule which counts all the comments on a story that have a matching expression in them and input the total number into a field in JIRA .Can anybody help me with that? 

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 7, 2025

Hi @Kunal Kumar 

For a question like this, context is important for the community to help.  Please post the following:

* an image of your complete automation rule in a single image,
* 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.

Until we see those...

Have you tried using a regular expression with the match() function to do this? https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#match--

With that approach, the number of matches could be counted using the list size function: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#list.size

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer