<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>RE: [rt-users] Script User Condition help</TITLE>
</HEAD><BODY STYLE="BACKGROUND-COLOR: white" ><TABLE CELLSPACING="0" CELLPADDING="5" WIDTH="100%">
<TBODY>
<TR>
</TR>
<TR>
<TD STYLE="FONT-SIZE: 8pt; FONT-FAMILY: verdana" VALIGN="top">
<P><STRONG></STRONG>
<DIV id=idOWAReplyText45848 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>No one have a clue as to what 
I did wrong or rather ideas as to how to get this working? :(</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com 
on behalf of Jonathan Chen<BR><B>Sent:</B> Wed 7/7/2004 2:00 PM<BR><B>To:</B> 
rt-users<BR><B>Subject:</B> RE: [rt-users] Script User Condition 
help<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2><BR>Ok, I am giving up on this without any PERL expert hints (A 
BIG ONE).   It seems I am able to recreate the RT scrip condition "ON 
STATUS CHANGE", but it's still failing to do what I wish to 
do. <BR><BR>That is when ticket status set to "resolved" status, I would 
like the scrip to stop sending out "ON STATUS CHANGE" notifications.   
Only do it when the ticket is under status.   I've tried to do a 
printf and see if there is something wrong $ticket->Status but am unable to 
get  a printf info.<BR><BR>Please help!   
Thanks!<BR><BR><BR>==================================================<BR>my 
$TicketStatusCondition=$self->TransactionObj;<BR>my $ticket = 
$self->TicketObj;<BR><BR>printf $ticket->Status;<BR><BR>if 
($ticket->Status ne 'resolved')  {<BR>    
$TicketStatusCondition -> 
SetExecModule("AnyTransaction");<BR>    $TicketStatusCondition 
-> SetApplicableTransTypes("Status");<BR>    
return(1);<BR>}<BR>else {<BR>    
return('undef');<BR>}<BR><BR></FONT></P></DIV>

</P>
<P>
</P>
<DIV ALIGN="left">
<HR SIZE="1">
</DIV>
<DIV ALIGN="justify"><SPAN STYLE="COLOR: gray"><FONT COLOR="#000000">This electronic mail message contains information belonging to PaymentOne, which may be confidential and/or legal privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, printing, copying, distribution, or the taking of any action in reliance on the contents of this electronically mailed information is strictly prohibited. If you receive this message in error, please immediately notify us by electronic mail and delete this message.</FONT></SPAN><BR><HR SIZE="1">
</DIV>
<P>
</P>
</TD>
</TR>
</TBODY>
</TABLE></BODY></HTML>