Is it possible in an automation rule to know if a JIRA user comments on a ticket and starts the comment with the email of a person?
And if condition is true, that email is retreived?
I have test rule with a Trigger of Issue Commented and as an action I create a Variable with this smart value {{issue.comments.last.body starts with "([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)"}}.
I tried doing JQL condition with a JQL of key="{{triggerIssue.key}}" AND comment ~ "@" to ensure that the comment has an email in it, but i am told that
{{issue.comments.last.body.substringBefore("\n")}} get the first line in a comment
I tested and managed to get the email if it is the first line on a comment with
I am now validating with this advanced condition, but even if the first line is text, it still passes. The condition is as follows
Maybe my regex is incorrect?
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.