[rt-users] On assign, send text of ticket to new owner

Russ Johnson russj at dimstar.net
Thu Jan 23 16:49:54 EST 2003


At 01:13 PM 1/23/2003 -0500, darren chamberlain wrote:
>My explanation was a little unclear -- I said "All those =3D's should be
>=;", but I meant "All those =3D's should be =" and *then* the
>semi-colon (sorry).

OK, I must be missing something simple.

Please keep in mind that I've only made minimal changes to the existing 
templates. This is my first attempt at creating a whole new one.

I have the template created with the while loop as shown:

{my $transactions =; $Ticket->Transactions;
   while (my $trans = $transactions->Next) {
           $OUT .= $trans->CreatedObj->AsString . ": " .
                           $trans->Description;
           if ($trans->TimeTaken) {
                   $OUT .=       " (".$trans->TimeTaken." min)";
           }
           $OUT .= "\n";
           if ($trans->Content) {
                   $OUT .= $trans->Content . "\n";
           }
           $OUT .= ('-'x78)."\n";
   }


1;
}

When a ticket is assigned, I get the following in an email:

Program fragment delivered error ``syntax error at template line 1, at EOF''

The listing above is the entire content of the template. Do I need 
something else in there as well?

Thanks for your help.


Russ Johnson
Dimension 7/Stargate Online
http://www.dimstar.net

Random thought #1 (Collect all 18)
"The only thing necessary for the triumph of evil is for good men to do 
nothing." - Edmund Burke 




More information about the rt-users mailing list