
10 Nov
2006
10 Nov
'06
6:40 a.m.
Hi Eric, Eric Boudrand schrieb:
Hello,
I am trying to find all open tickets available in a specific queue with :
my @TicketIDs = $TicketObject->TicketSearch( Result => 'ARRAY', States => 'open', QueueIDs => 15, );
This call outputs an empty array. In Ticket.pm, the function exits in line 2355. I think the problem come from the fact that there is no UserID defined from this search. If I add an UserID, the search look in all the queues. How can I restrict to this specific queue ?
Sounds like you didn't regard the API-documentation http://dev.otrs.org/2.0/Kernel/System/Ticket.html#item_ticketsearch There is really no definite explanation there how to use the function, but I think it will help you.
Regards.
Eric Boudrand
Bye, Alex