You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Using the following filter, and it's been pretty decent thus far, until someone chatted a comment that started with:
"Thank You!
thank you,
..."
Tested variations on the comment, and getting rid of the second thank you line causes the rule to behave as intended (don't transition back to in progress) but two "thank you" comments in a row breaks things. I tested the pattern against regex101.com with the Java 8 flavor, and it matches twice. Is there some quirky backend engine detail thats causing this behavior? Is there something that can be adjusted in my pattern to work around this odd behavior?
Thanks in advance.
The pattern:
^[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?.*
Try the following and see if that gets you what you need. Should only match only the first instance.
^[^%]*[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?[^%]*$
My requirements are "Thank You" in some form, but ONLY at the very start of the comment, as we don't want to affect users who respond via email with "Thank You" in their email signature (which is common in our locale)
Looks like /A and ^ have different behaviors, so this seems to be working:
\A[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?[^%]*$
Minor tweaks to your suggestion got me where I wanted. Thank you Sir!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well this grew past this original question. Thank You's were still getting past, so I started having it output to Microsoft Teams, and found the {{comment.body}} I was checking regex against had {color:#000000} text at the front of the line. Yey.
So I'm up to:
\A(\{.*\}\n?\s?|<.{0,5}>|[_+*\-])*[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?[^%]*$
for my filtering regex to address the presence of one or more leading {} blocks before "Thank You!", also looking for <> HTML blocks (which probably aren't in there) and an assortment of Markdown Characters, which could be used for underline, bold, etc. This looks to be effective in my testing, hopefully others will get some mileage out of this.
I've referenced this thread and documented here:
https://community.atlassian.com/t5/Jira-Service-Management/Using-automation-to-prevent-reopening-when-a-customer-comments/m-p/2009642#M2847
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.