[rt-users] Q: Writing a transaction template: {$Transaction->Content()}

Mike Friedman mikef at berkeley.edu
Fri Sep 22 00:30:45 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Sep 2006 at 21:21 (-0700), I said:

> If you really want to include, say, the contents of the last 
> correspondence before the ticket was resolved, then I believe you'll 
> have to loop through the ticket's attachments to find it.  At least 
> that's what I wound up doing.

Slight correction:

Actually, what I do is include the initial correspondence that created the 
ticket, since this is what the Requestor (who is receiving the resolution 
email) would recognize.

So, the relevant extract from my template, where I pick up that initial 
correspondence, looks like this:

    {
    $Transactions = $Ticket->Transactions;
    $Transaction = $Transactions->First;
    $Transaction->Content();
    }

Of course, you may want to do something else.

Mike

_________________________________________________________________________
Mike Friedman                        IST/System and Network Security
mikef at berkeley.edu                   2484 Shattuck Avenue
1-510-642-1410                       University of California at Berkeley
http://socrates.berkeley.edu/~mikef  http://security.berkeley.edu
_________________________________________________________________________

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBRRNm+K0bf1iNr4mCEQJEMQCfVwWhttqI4jMPLBKq4b1I4eBiu3IAoKJL
vQaE2Jh10f7q0KGJgOoPKXc3
=gOj4
-----END PGP SIGNATURE-----



More information about the rt-users mailing list