[rt-users] Display scrip transactions in "Results:"

Edge, Sean Sean.Edge at mtvnmix.com
Mon Jun 11 13:04:59 EDT 2007

I forgot to mention we are using RT: 3.6.3.
Thanks again,


From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Edge,
Sent: Monday, June 11, 2007 12:28 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Display scrip transactions in "Results:"

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:

if ((! defined($self->TicketObj->TimeWorked) || 
   ($self->TicketObj->TimeWorked == 0)) { 
    my ($id, $msg) = $self->TicketObj->SetStatus("open"); 
    $self->TicketObj->Comment(Content => "You must set the Time
return 1; 

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:


*	Ticket 32: Status changed from 'open' to 'resolved' 


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.

Thanks for any insight/help. 



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].
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070611/0005b9ed/attachment.htm>

More information about the rt-users mailing list