OTRS SOAP/REST TicketSearch limit to 500

Moderator: crythias

Locked
imrkv
Znuny newbie
Posts: 4
Joined: 20 Oct 2015, 15:41
Znuny Version: 4.0.7

OTRS SOAP/REST TicketSearch limit to 500

Post by imrkv »

Hi,
I am pulling tickets from OTRS server (I set up GenericTicketConnector and I use both Soap and Rest protocols).

For example when I try to extract all tickets from specific queue, my response is always limited to 500 results (8000+ tickets in the queue currently). Example:

curl "https://localhost/otrs/nph-genericinter ... ampleQueue"

How can I get all tickets from a queue?
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: OTRS SOAP/REST TicketSearch limit to 500

Post by EXG133 »

Did you try looking in SysConfig?
Hint: GenericInterface::Operation::TicketSearch
imrkv
Znuny newbie
Posts: 4
Joined: 20 Oct 2015, 15:41
Znuny Version: 4.0.7

Re: OTRS SOAP/REST TicketSearch limit to 500

Post by imrkv »

Yes I did, there was nothing in there to suggest what can I do..... but I played around for a while and it turned out to be really simple.
I just passed Limit=(any number) inside the url and I got all tickets back in the response. There is nothing in the docs about 'Limit' on api requests
EXG133
Znuny expert
Posts: 217
Joined: 06 Aug 2012, 18:12
Znuny Version: 3.1.7 & 4.04

Re: OTRS SOAP/REST TicketSearch limit to 500

Post by EXG133 »

Did you try:

GenericInterface::Operation::TicketSearch###SearchLimit
Maximum number of tickets to be displayed in the result of this operation
Default value: 500


I've never needed to search more than 500 tickets so I didn't test it, but that sounds an awful lot like what you're looking for.
imrkv
Znuny newbie
Posts: 4
Joined: 20 Oct 2015, 15:41
Znuny Version: 4.0.7

Re: OTRS SOAP/REST TicketSearch limit to 500

Post by imrkv »

It looks like it is, but I can't see that menu, is it otrs.localhost.com > Admin > Web Services > Generic Interface > Soap/Rest > otrs as provider > TIcketSearch ? I am on OTRS v4
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: OTRS SOAP/REST TicketSearch limit to 500

Post by reneeb »

Code: Select all

GenericInterface::Operation::TicketSearch###SearchLimit 
is a SysConfig option...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
imrkv
Znuny newbie
Posts: 4
Joined: 20 Oct 2015, 15:41
Znuny Version: 4.0.7

Re: OTRS SOAP/REST TicketSearch limit to 500

Post by imrkv »

I see, I am on the development side of things.. I don't even have user access to that box. I will ask my sys admin to have a look at it. Thanks
Locked