Statistics - RT3

I’m having a problem with Simon Cozens Statistics Program under RT3. It
almost works…

error: Can’t locate object method “Next” via package “RT::EasySearch”
(perhaps you forgot to load “RT::EasySearch”?) at
/opt/rt3/share/html/stats/DayOfWeek.html line 65.

context: …
61: my $tix = new RT::Tickets($session{‘CurrentUser’});
62: $tix->LimitQueue (VALUE => $queue);
63: $tix->UnLimit;
64: if ($tix->Count) {
65: while (my $t = $tix->RT::EasySearch::Next) { # BLOODY HACK
66: $counts[(localtime($t->ResolvedObj->Unix))[6]]{resolved}++
67: if $t->Status eq “resolved”;
68: $counts[(localtime($t->LastUpdatedObj->Unix))[6]]{killed}++
69: if $t->Status eq “dead”;

Anyone got the statistics working under rt3??

Regards,

/Geo

I’m having a problem with Simon Cozens Statistics Program under RT3. It
almost works…

error: Can’t locate object method “Next” via package “RT::EasySearch”
(perhaps you forgot to load “RT::EasySearch”?) at
/opt/rt3/share/html/stats/DayOfWeek.html line 65.

context: …
61: my $tix = new RT::Tickets($session{‘CurrentUser’});
62: $tix->LimitQueue (VALUE => $queue);
63: $tix->UnLimit;
64: if ($tix->Count) {
65: while (my $t = $tix->RT::EasySearch::Next) { # BLOODY HACK
66: $counts[(localtime($t->ResolvedObj->Unix))[6]]{resolved}++
67: if $t->Status eq “resolved”;
68: $counts[(localtime($t->LastUpdatedObj->Unix))[6]]{killed}++
69: if $t->Status eq “dead”;

Change EasySearch to SearchBuilder and see how much further it gets.
The underlying code changed for 3.0. (And it’s not something that anyone
was ever supposed to touch, per Simon’s comment)

Anyone got the statistics working under rt3??

Regards,

/Geo


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

http://www.bestpractical.com/rt – Trouble Ticketing. Free.