<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Display scrip transactions in "Results:"</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">*****************</FONT>
<BR><FONT SIZE=2 FACE="Arial">if ((! defined($self->TicketObj->TimeWorked) ||</FONT>
<BR><FONT SIZE=2 FACE="Arial"> ($self->TicketObj->TimeWorked == 0)) { </FONT>
<BR><FONT SIZE=2 FACE="Arial"> my ($id, $msg) = $self->TicketObj->SetStatus("open");</FONT>
<BR><FONT SIZE=2 FACE="Arial"> $self->TicketObj->Comment(Content => "You must set the Time Worked!");</FONT>
<BR><FONT SIZE=2 FACE="Arial">}</FONT>
<BR><FONT SIZE=2 FACE="Arial">return 1;</FONT>
<BR><FONT SIZE=2 FACE="Arial">*****************</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">*****************</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 SIZE=2 FACE="Arial">*****************</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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 SIZE=2 FACE="Arial">Thanks for any insight/help.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">-Sean</FONT>
</P>
<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>