<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Display scrip transactions in "Results:"</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=776035816-11062007><FONT face=Arial size=2>I 
forgot to mention we are using RT: 3.6.3.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=776035816-11062007></SPAN><SPAN 
class=776035816-11062007><FONT face=Arial size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=776035816-11062007><FONT face=Arial 
size=2>Thanks again,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=776035816-11062007><FONT face=Arial 
size=2>Sean</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com 
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>Edge, 
Sean<BR><B>Sent:</B> Monday, June 11, 2007 12:28 PM<BR><B>To:</B> 
rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users] Display scrip 
transactions in "Results:"<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>I created a Scrip to make sure that "Time Worked" is 
not zero when a ticket is 'resolved'.  If there is no "Time Worked" defined 
then I set the ticket status back to 'open' and log a comment.  Here's the 
code:</FONT></P>
<P><FONT face=Arial size=2>*****************</FONT> <BR><FONT face=Arial 
size=2>if ((! defined($self->TicketObj->TimeWorked) ||</FONT> <BR><FONT 
face=Arial size=2>   ($self->TicketObj->TimeWorked == 0)) { 
</FONT><BR><FONT face=Arial size=2>    my ($id, $msg) = 
$self->TicketObj->SetStatus("open");</FONT> <BR><FONT face=Arial 
size=2>    $self->TicketObj->Comment(Content => "You 
must set the Time Worked!");</FONT> <BR><FONT face=Arial size=2>}</FONT> 
<BR><FONT face=Arial size=2>return 1;</FONT> <BR><FONT face=Arial 
size=2>*****************</FONT> </P>
<P><FONT face=Arial size=2>I would like to display the transaction ('resolved' 
=> 'open') and possibly the message when it goes back to display the changes 
made to the ticket.  Currently here's all it displays:</FONT></P>
<P><FONT face=Arial size=2>*****************</FONT> <BR><FONT face=Arial>Results 
</FONT></P>
<UL>
  <LI><FONT face=Arial>Ticket 32: Status changed from 'open' to 
  'resolved'</FONT> </LI></UL>
<P><FONT face=Arial size=2>*****************</FONT> </P>
<P><FONT face=Arial size=2>Does anyone have any idea how to do this?  
Otherwise they will probably be confused when the result shows that the ticket 
was resolved but it's still open and they may not notice the comment at the end 
of the thread.</FONT></P>
<P><FONT face=Arial size=2>Thanks for any insight/help.</FONT> </P>
<P><FONT face=Arial size=2>-Sean</FONT> </P><PRE> </PRE><pre>


This email (including any attachments) is for its intended-recipient's
use only. This email may contain information that is confidential or
privileged.  If you received this email in error, please immediately
advise the sender by replying to this email and then delete this message
from your system.  For further information and disclaimers that apply to
this email, see [http://www.viacom.com/email_disclaimer.jhtml].
</pre></BODY></HTML>