[rt-users] scanning active ticket contents in perl

Robert Eden rmeden at gmail.com
Tue Sep 8 19:42:06 EDT 2009


On 9/8/2009 5:34 PM, Ruslan Zakirov wrote:
>> I'd like to write a special report and in order to do so, I need to get
>> info from scanning replies and comments of tickets.
>>
>> This shouldn't be hard, but I just can't figure it out.  I've read the
>> RT Essentials book, the wiki, some sample code... I'm close... just
>> can't seem to close the deal!
>>     
> Sure, the code is looping as $ticket->Transactions each time returns
> new collection, so you always start from first txn. You need somthing
> like:
>
> my $txns = $ticket->Transactions;
> while ( my $txn = $txns->Next ) {
> ...
> }
>   
*DOH* I knew it would be simple.  Thanks.. it's working now.

Robert




More information about the rt-users mailing list