Contrib: GiveHistory template Re: [rt-users] NotifyOwner and NotifyOwnerAsComment

rt-users rt-users at lists.netways.de
Fri Jan 17 07:50:16 EST 2003


Hi,
>I'd love to see the code that would process the non-message 
>transactions properly, if anyone does take the time to write that.

I am not 100% sure, what you ment, but this is what I use. You can
change the next unless line:

--- start here ---
Subject: TicketEscalation

{my $transactions = $Ticket->Transactions;
$transactions->OrderBy(FIELD => 'Created', ORDER => 'DESC');
while (my $trans = $transactions->Next) {
next unless ($trans->Type =~ /^(Create|Correspond|Escalation$)/);
	$OUT .= $trans->CreatedObj->AsString . ": " .
			$trans->Description;
	if ($trans->TimeTaken) {$OUT .=	" (".$trans->TimeTaken." min)";}
	$OUT .= "\n";
	if ($trans->Content) {$OUT .= $trans->Content . "\n";}
	$OUT .=
"-----------------------------------------------------------------------
------\n";
}

1;
}

--- stop here ---

cu,
Julian



More information about the rt-users mailing list