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?
OTRS SOAP/REST TicketSearch limit to 500
Moderator: crythias
Re: OTRS SOAP/REST TicketSearch limit to 500
Did you try looking in SysConfig?
Hint: GenericInterface::Operation::TicketSearch
Hint: GenericInterface::Operation::TicketSearch
Re: OTRS SOAP/REST TicketSearch limit to 500
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
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
Re: OTRS SOAP/REST TicketSearch limit to 500
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.
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.
Re: OTRS SOAP/REST TicketSearch limit to 500
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
-
- 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
Code: Select all
GenericInterface::Operation::TicketSearch###SearchLimit
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: OTRS SOAP/REST TicketSearch limit to 500
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