[rt-users] Temporary "Silent" Resolve
Nathan Affleck
neaffleck at ucdavis.edu
Wed Jun 4 11:52:20 EDT 2008
We set it so the user only gets one resolved message via a custom
scrip....
Description: OnResolveOnce
Condition: User Defined
Action: Notify Requestors
Template: Whatever...
Custom condition:
-------
my $result = undef;
if ($self->TransactionObj->Type eq "Status" &&
$self->TransactionObj->NewValue eq "resolved") { my $trans_list =
$self->TicketObj->Transactions; my $trans; my $num_resolved = 0;
while ($trans = $trans_list->Next) { $num_resolved++ if ($trans->Ticket
== $self->TicketObj->Id) && ($trans->Type eq "Status") &&
($trans->NewValue eq "resolved"); } $result = ($num_resolved <= 1); }
return($result);
-------
Nate
More information about the rt-users
mailing list