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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.