Template tags?

Hi,

Is somewhere a document which explains the tags (e.g. $Ticket->Subject )
available for making a template?

I’m trying to find a way to quote original request text (the one that
came from the requestor through e-mail) or further correspondence text
when corresponding with the requestor.

Lynoure Rajamäki
lynoure@otaverkko.fi

Lynoure Rajam?ki wrote:

Is somewhere a document which explains the tags (e.g. $Ticket->Subject )
available for making a template?

No, but perhaps there should be a pointer. :slight_smile:

$Ticket refers to the RT::Ticket object for the current ticket.
``man RT::Ticket’’ should give you an idea of all the methods
accessible via that object (of which Subject is one.)

I’m trying to find a way to quote original request text (the one that
came from the requestor through e-mail) or further correspondence text
when corresponding with the requestor.

You want something like

{$Ticket->Transactions->First->Content()}

in this case.
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh@snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances

Phil Homewood wrote:

Lynoure Rajam?ki wrote:

Is somewhere a document which explains the tags (e.g.
$Ticket->Subject ) available for making a template?

No, but perhaps there should be a pointer. :slight_smile:

$Ticket refers to the RT::Ticket object for the current ticket. ``man
RT::Ticket’’ should give you an idea of all the methods accessible via
that object (of which Subject is one.)

The documentation only documents the ‘difficult’ things you can do with
an RT::Ticket object. For retreiving ‘simple’ pieces of information
about a ticket, you also needs to know that RT::Ticket inherits from
DBIx::SearchBuilder and corresponds to a record in the Tickets table in
the database.

So $Ticket->Subject works because Tickets.Subject is in the DB. If you
have a quick look at that table you’ll be able to work out that things
like $Ticket->Status and $Ticket->Due and also possible.

Smylers
GBdirect