When a defect is closed, I'm trying to parse all of the comments for specific values to build a report. The value I am looking for is like the following: ##.##.####. I've tried both the {{#issues.comments.match("([0-9][0-9]\\.[0-9][0-9]\\.[0-9][0-9][0-9][0-9])"}}... and issue.comment.match styles. Both execute successfully but return nothing on the match. This comment could be first, last, or somewhere in between but always has the same syntax.
Hi @Randy Simes -- Welcome to the Atlassian Community!
I note at least one missing parenthesis to close the match() function...and...
Without seeing the remainder of your rule, perhaps try using smart list filtering:
https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588
Or, split the items into a list first and then try to match on the {{body}}
{{#issues.comments}}{{body.match("([0-9][0-9]\\.[0-9][0-9]\\.[0-9][0-9][0-9][0-9])")}}{{/}}
Kind regards,
Bill
Splitting the items into a list and matching on the body worked! Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.