WebService (5.0.13) REST : Use of ArchiveFlags

Moderator: crythias

Locked
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

WebService (5.0.13) REST : Use of ArchiveFlags

Post by kruegerM »

OTRS 5.0.13
I'm not having any success with REST calls using ArchiveFlags (have no success with SOAP either)
I can find tickets fine that haven't been archived, but when I try to find tickets from months past that are archived, I'm not finding them.
Using the Debugger, I find the following:

COMMUNICATION SEQUENCE:
'REQUEST_URI' => '/otrs/nph-genericinterface.pl/Webservice/GenericRESTConnector/Ticket?UserLogin=xx&Password=xx&Queues=IS::LIS&State=closed%20successful&State=closed%20unsuccessful&State=closed%20workaround&ArchiveFlags=n&ArchiveFlags=y',

Incoming data before mapping:
$VAR1 = {
'ArchiveFlags' => [
'n',
'y'
],
'Password' => 'xx',
'Queues' => 'IS::LIS',
'RequestMethod' => 'GET',
'State' => [
'closed successful',
'closed unsuccessful',
'closed workaround'
],
'UserLogin' => 'xx'
};


The result is 60 items.
This does not change if I don't set ArchiveFlags, set it to only 'n' or set it to only 'y' - the result is always 60 items.

If I use the interface, searching the same queue for all closed tickets gives me 1427 items.
Locked