I have the following steps within a single rule:
1. Create variable - {{firstName}}
smart value - {{issue.comments.last.body.match("[A-Za-z]+(?=\.)(?=\.\w+\@jamf\.com)").capitalize()}}
2. Create Variable - {{lastName}}
smart value - {{issue.comments.last.body.match("(?<=\w+\.)[A-Za-z]+(?=\@jamf\.com)").capitalize()}}
3. Create Variable - {{fullName}}
{{firstName}} {{lastName}}
I validated the regex using two different regex sites.. but neither matches on the comment body:
"Alert LMD873080672 status changed: ack ----- Alert lbextd01.fluff.net/LinuxNewProcesses-/opt/cisco/amp/bin/ampdaemon/Status is acknowledged by ben.hart@fluff.com
Previously I had a variable being defined by: {{issue.comments.last.body.match("(\w+\.\w+(?=@))").replace(".", " ")}}. And it worked great! But I need the first and last name variables with proper capitalization in order to use them to assign Incidents. I can't think of a better way other than splitting it, and using .capitalize on each, then recombine them.
Maybe Jira doesn't like Positive lookbehinds?
What am I doing wrong here?