[rt-users] Flaws on RT::Extension::RepeatTicket search

Jim Brandt jbrandt at bestpractical.com
Tue May 21 15:50:31 EDT 2013


On 5/21/13 1:44 AM, Thomas Lau wrote:
> Hi Jim,
>
> How could you put a debug statement on the script?

In the run subroutine in rt-repeat-ticket:

     while ( my $attr = $attrs->Next ) {
         my $date = $args{date}->clone;
# Gets all
         warn "Got a ticket with a recurrence: " . $attr->Object->id;
         next unless $attr->Content->{'repeat-enabled'};
# Just enabled
         warn "Ticket with recurrence enabled: " . $attr->Object->id;
         next if $args{ticket} && $args{ticket} != $attr->Object->id;

But it's even easier to do as Ruslan suggested and create a new ticket 
search, click Advanced, paste:

HasAttribute = 'RepeatTicketSettings'

click Apply, then Show Results.




More information about the rt-users mailing list