REST API to filter Data in all Tickets

English! place to talk about development, programming and coding
Post Reply
akshattandon
Znuny newbie
Posts: 20
Joined: 15 May 2018, 08:03
Znuny Version: 6.0.5
Real Name: Akshat
Company: None

REST API to filter Data in all Tickets

Post by akshattandon »

i All,

We are integrating OTRS with our portal using REST Services, When we retrieve Tickets from the REST API, It returns me the list of TicketID's

Code: Select all

otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket?UserLogin=<>&Password=<>
It returns me the data like the following

Code: Select all

{
    "TicketID": [
        "31",
        "30",
        "29",
        "28"
    ]
}
Is there any way by which we can filter the data based on Open Tickets or age or Priority, Provided as a part of REST API?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: REST API to filter Data in all Tickets

Post by jojo »

"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
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: REST API to filter Data in all Tickets

Post by reneeb »

Code: Select all

otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket?UserLogin=<>&Password=<>&TicketCreateTimeOlderDate=2018-01-01 00:00:00
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
Post Reply