[rt-users] LimitQueue Problem from Script
Torsten Brumm
torsten.brumm at googlemail.com
Thu Aug 10 05:48:46 EDT 2006
Hi RT Users,
hopefully someone can help me with this issue.
I have a perl Script (i think from Dirk Papes Homepage) StalledUntilNow.pm.
This works fine so far. It looks for all tickets with a specific Status and
a special Starts Value:
$self->TicketsObj->LimitStatus(VALUE => 'stalled', OPERATOR => '=') or
die;
$self->TicketsObj->LimitDate(FIELD => 'Starts', OPERATOR => '>', VALUE =>
$unsetiso);
$self->TicketsObj->LimitDate(FIELD => 'Starts', OPERATOR => '>',
VALUE => 'main.LastUpdated', QUOTEVALUE => 0) or die;
$self->TicketsObj->LimitDate(FIELD => 'Starts', OPERATOR => '<', VALUE =>
$iso) or die;
Now i have tried to limit the search to a specific queue and the Script
doesn't work anymore, no error, but didn't find a ticket. My Change look
like:
$self->TicketsObj->LimitQueue(VALUE => 'GAI_BreakBulk');
$self->TicketsObj->LimitStatus(VALUE => 'stalled', OPERATOR => '=') or
die;
$self->TicketsObj->LimitDate(FIELD => 'Starts', OPERATOR => '>', VALUE =>
$unsetiso);
$self->TicketsObj->LimitDate(FIELD => 'Starts', OPERATOR => '>',
VALUE => 'main.LastUpdated', QUOTEVALUE => 0) or die;
$self->TicketsObj->LimitDate(FIELD => 'Starts', OPERATOR => '<', VALUE =>
$iso) or die;
Whats going wrong? I'm at the end of my Ideas..
Thanks for any help.
Torsten
--
MFG
Torsten Brumm
http://www.torsten-brumm.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060810/d7be406f/attachment.htm>
More information about the rt-users
mailing list