Re: [rt-users] Having the last transaction (or the full ticket) in emails on queue or owner changes

2011-06-29 Thread L B
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

Re: [rt-users] Having the last transaction (or the full ticket) in emails on queue or owner changes

2011-06-23 Thread L B
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

Re: [rt-users] Having the last transaction (or the full ticket) in emails on queue or owner changes

2011-06-23 Thread Kevin Falcone
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

[rt-users] Having the last transaction (or the full ticket) in emails on queue or owner changes

2011-06-23 Thread L B
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