Hi, I am new to Jira, not a developer nor a system admin etc.... and struggling with automation rules.
What I am trying to do is:
1) When issue is commented,
2) If issue's comment contains a mentioned user, and a certain word,
3) Edit assignee and a custom field(user) to mentioned user.
So far, my automation rules look like this :
1) Trigger : When issue is commented,
2) If : (Advanced compare condition) Checks if : {{commebt.body}} contains regular expression [~accountid:XYZ]
3) Then : Create Varible {{mentionedUser}}, smart value : {{issue.comment.last.body.split("\n").match(\[~accountid"(.*)\].*")}}
4) (Then) And : Edit issue field Assignee : {{mentionedUser}}
And not working.
It seems like create variable is not getting the text strings from the comment, nor the split match etc. Is working as the varible {{mentionedUser}} returns empty space " ".
Can anyone please help );
Thank yoh in advance.