Listing history in template used by scrip

is there a way to list the entire history of a ticket in an auto generated
email that rt sends out? i know how to create templates and then use them
in scrips, so i guess the question is more how do i get the entire history
to list in a template?

This message contains information which may be confidential and privileged.
Unless you are the intended recipient (or authorized to receive this message
for the intended recipient), you may not use, copy, disseminate or disclose
to anyone the message or any information contained in the message. If you
have received the message in error, please advise the sender by reply
e-mail, and delete the message. Thank you very much.

Coleman, Rebecca wrote:

is there a way to list the entire history of a ticket in an auto generated
email that rt sends out? i know how to create templates and then use them
in scrips, so i guess the question is more how do i get the entire history
to list in a template?

With the caveat that this is easy to snowball out of
control if you have users who reply without trimming
excess content, you should be able to do something like

my $Transactions = $Ticket->Transactions;
while ( my $Transaction = $Transactions->Next ) {
# do something with $Transaction->Content or whatever
}

and you might even glean some inspiration from the way the
web interface does it, see Ticket/Elements/ShowHistory …
�|� Request Tracker — Best Practical Solutions – Trouble Ticketing. Free.