Attempting to find when a comment contains an email and save the email to a variable. I have an advanced compare to verify the comment has an email but it does not save to the variable, the second advance compare always comes back empty.
Hi @Kim Barry , it is using Jira's Pattern class and look for matches. So, to mark a match, you need to use parentheses.
For example:
Instead of ".+@email.com", use "(.+@email.com)"
Of course, you need to modify the regex depend on your needs, it is just a dummy one
@Kim Barry -
Hi Kim:
Take a look of this Atlassian KB where it gives you some information on using Regex for automation -
https://confluence.atlassian.com/jirakb/extract-content-out-of-description-and-summary-with-regex-and-automation-1157495262.html
Hope this also helps.
Best, Joseph Chung Yin
It looks like you're new here. Sign in or register to get started.