[rt-users] Confused with scripcondtion user defined.

Jonathan Chen JChen at paymentone.com
Wed Jul 7 15:17:01 EDT 2004


 
Am I anywhere close to what I am trying to accomplish with the script condition below?

Notify on Ticket Status
User Defined Notify Requestors, Ccs and AdminCcs with template Transaction.
^^^^^^^^^^^^ 

============================================================================my $TicketStatusCondition=$self->TransactionObj;
my $ticket = $self->TicketObj;

if ($ticket->Status ne 'resolved')  {
    $TicketStatusCondition=>SetExecModule("AnyTransaction");
    $TicketStatusCondition=>SetApplicableTransTypes("Status");
    return(1);
}
else {
    return(undef);
}
============================================================================
Basically trying to create "On Status Change" condition and when status is "resolved" do nothing and let resolved scrip email the requestor.  If this is not done, then the requestor would get 2 emails.  One the status of the ticket has changed and the other saying the ticket has been resolved. 
 
--------------------------------------------------------
 
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. 
--------------------------------------------------------
 
 
  



More information about the rt-users mailing list