I'm trying to get a count of the comments that match specific text using a lookup. My attempts have gotten me either the total number of comments or 0/blank.
{{#lookupIssues}} - {{key}}: {{#=}} {{#comments}} {{#if(equals(body.match("<Match text>").size, 1))}} 1 {{/}} {{/}} {{/}} times {{/lookupIssues}}
I'd like to get this into a single email report that shows the key and the number of comments that match.
Key 1 - 5
Key 2 - 1
Key 3 - 2
The lookupIssues matches on this comment so the result should never be 0.