<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; ">Trying to set up this Scrip to set Resolved status based on email subject. It is auto-closing all tickets.</span><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica">Any ideas? I have to be missing something basic. I already tested the regex match separately. I also thought I had the logic reversed but tested it both ways (!~ and =~).</font></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica"><br></font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica">TIA,</font></div><div><font class="Apple-style-span" face="Verdana, Arial, Helvetica">Dave</font></div>
<div><font class="Apple-style-span" face="Verdana, Arial, Helvetica"><br></font></div><div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; ">Description: Auto Close Google Checkout emails<br>
Condition: On Create <br></span><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; ">Action: User Defined <br>Template: Global Template: Blank <br>Stage: TransactionCreate <br><br>Custom condition: <br>
</span><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; ">my $match = "Order [0-9][0-9]+ has been cancelled by Google"; <br>my $t_subject = $self->TicketObj->Subject; <br>if ( $t_subject =~ /$match/i ) { <br>
return 1; <br>} <br>else { <br>return 0; <br>} <br><br>Custom action preparation code: <br><br>return 1; <br><br>Custom action cleanup code: <br><br>$self->TicketObj->SetStatus( "resolved" ); <br>return 1; </span><div>
<div><div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; "><br></span></div></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; "><br></span></div>
<div>
<span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica; "><br></span></div></div></div></div></div></div>