Here is a version a bit improved :
Last correspondence of the ticket:
==
{
my $txns = $Ticket->Transactions;
$txns->Limit(
FIELD=> 'Type',
VALUE=> $_,
) for qw(Create Correspond Comment);
my $last_content;
my $AttachmentObjects = $txns->Last()->Attachment
Thanks Kevin, I searched the wiki but didn't find this page.
Here is what I did for my problem. It only print the last
correspondance/comment. This is sent in my case to the owner for an
owner change, and to the adminccs of the queue for a queue change.
To put in the template used for owner chan
On Thu, Jun 23, 2011 at 09:44:54AM +0200, L B wrote:
> Hi,
>
> This is a question I have for a while. In the templates, using
> {$Transaction->Content()} is usually ok for create/reply/comment
> because there is something in the transaction.
>
> When I change the ticket from a queue to another o
Hi,
This is a question I have for a while. In the templates, using
{$Transaction->Content()} is usually ok for create/reply/comment
because there is something in the transaction.
When I change the ticket from a queue to another or change the owner,
{$Transaction->Content()} is empty. So people r