REST API for getting all ticket titles along with TicketId

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

Postby akshattandon » 17 May 2018, 23:27

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

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

Postby jojo » 18 May 2018, 07:56

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

Postby reneeb » 22 May 2018, 13:24

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