I tried TransactionBatch, same result.<br><br><div class="gmail_quote">On Tue, Aug 30, 2011 at 11:26 AM, <a href="mailto:ktm@rice.edu">ktm@rice.edu</a> <span dir="ltr"><<a href="mailto:ktm@rice.edu">ktm@rice.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Shouldn't that be TransactionBatch and not TransactionCreate?<br>
<br>
Cheers,<br>
Ken<br>
<div><div></div><div class="h5"><br>
On Tue, Aug 30, 2011 at 11:17:54AM -0400, Dave Pascoe wrote:<br>
> Forgot to mention - running 4.0.2.<br>
><br>
> -Dave<br>
><br>
> On Tue, Aug 30, 2011 at 10:53 AM, Dave Pascoe <<a href="mailto:davekm3t@gmail.com">davekm3t@gmail.com</a>> wrote:<br>
><br>
> > Trying to set up this Scrip to set Resolved status based on email subject.<br>
> > It is auto-closing all tickets.<br>
> > Any ideas? I have to be missing something basic. I already tested the<br>
> > regex match separately. I also thought I had the logic reversed but tested<br>
> > it both ways (!~ and =~).<br>
> ><br>
> > TIA,<br>
> > Dave<br>
> ><br>
> > Description: Auto Close Google Checkout emails<br>
> > Condition: On Create<br>
> > Action: User Defined<br>
> > Template: Global Template: Blank<br>
> > Stage: TransactionCreate<br>
> ><br>
> > Custom condition:<br>
> > 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;<br>
> ><br>
> ><br>
> ><br>
> ><br>
<br>
</div></div>> --------<br>
> RT Training Sessions (<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
> * Chicago, IL, USA ? September 26 & 27, 2011<br>
> * San Francisco, CA, USA ? October 18 & 19, 2011<br>
> * Washington DC, USA ? October 31 & November 1, 2011<br>
> * Melbourne VIC, Australia ? November 28 & 29, 2011<br>
> * Barcelona, Spain ? November 28 & 29, 2011<br>
<br>
</blockquote></div><br>