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 :)
Hi Kim:
Take a look of this Atlassian KB where it gives you some information on using Regex for automation -
Hope this also helps.
Best, Joseph Chung Yin
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.