REST API to filter Data in all Tickets

English! place to talk about OTRS development, programming and coding

Moderator: tto

akshattandon
OTRS newbie
Posts: 4
Joined: 15 May 2018, 08:03
OTRS Version?: 6.0.5
Real Name: Akshat
Company: None

REST API to filter Data in all Tickets

Postby akshattandon » 17 May 2018, 23:33

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
Moderator
Posts: 14182
Joined: 26 Jan 2007, 14:50
OTRS Version?: Git Master
Contact:

Re: REST API to filter Data in all Tickets

Postby jojo » 18 May 2018, 07:55

"Production": OTRS Business Solution™ 6, STORM powered by OTRS
"Testing": OTRS git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com :: Share your ideas

reneeb
OTRS guru
Posts: 4585
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: REST API to filter Data in all Tickets

Postby reneeb » 18 May 2018, 07:57

Code: Select all

otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Ticket?UserLogin=<>&Password=<>&TicketCreateTimeOlderDate=2018-01-01 00:00:00
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de


Return to “OTRS Developers”

Who is online

Users browsing this forum: No registered users and 0 guests

cron