REST API for getting all ticket titles along with TicketId

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 for getting all ticket titles along with TicketId

Post by akshattandon »

Hi 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=<>
Like following

Code: Select all

{
    "TicketID": [
        "31",
        "30",
        "29",
        "28"
    ]
}
We need to show the Ticket Title as well when retrieving all tickets list,

Is there custom option which we can pass to retrieve the Ticket Title etc along with ID's
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: REST API for getting all ticket titles along with TicketId

Post by jojo »

no, you have to use the TicketGet method after you got the ticket ID by search

http://doc.otrs.com/doc/api/otrs/stable ... et.pm.html
"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 for getting all ticket titles along with TicketId

Post by reneeb »

Or you write your own module (basically a copy'n'paste thing)....
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