[dev] TicketSearch

Alexander Scholler alexander.scholler at augsburg.de
Fri Nov 10 07:40:17 CET 2006


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


More information about the dev mailing list