Hi
I'm creating an automation that assigns the ticket if the comment contains this string: #assign followed by an email address.
no way to test it, but it will fail out if the smart value is invalid anyways i do not want to care about that. just looking for a smart value that returns the email after #assign. first i modify the #assign to #-assign with {{comment.body.replaceAll("#assign","#-assign")}} because if email gets sent out with #assign in it it will be an endless loop in case of a reply to the email. anyways here is what i tried: {{comment.body.substringAfter("#-assign")}}
but audit log says "was already unassigned. meaning this returns an empty string.
possibly will set this automation to look for the string in a new request too but first things first.
will go further later with #cc and #watcher tags too but once one is figured out the rest is just copy paste.