[rt-users] REST queries/search for queue objects in 4.0.2

Kevin Falcone falcone at bestpractical.com
Fri Oct 14 13:29:06 EDT 2011


On Fri, Oct 14, 2011 at 05:25:59PM +0000, Srikumar Nair wrote:
> Thanks.. While searching for APIs I noticed some emails talking about the
> Ticket_Overlay.pm file in the $RT_HOME/lib/RT folder.
> But I can't seem to find any file with the name *Overlay* in this folder
> (I am using 4.0.2).
> Where are these *Overlay* files in 4.0.2?

4.0 finally merged the Queue.pm and Queue_Overlay.pm files.
You can now safely read the Queue.pm or Ticket.pm file with perldoc

-kevin


> On 10/14/11 5:52 AM, "Kevin Falcone" <falcone at bestpractical.com> wrote:
> 
> >On Thu, Oct 13, 2011 at 11:26:20PM +0000, Srikumar Nair wrote:
> >> I see that the REST APIs has a search method to do search for tickets
> >>based on some conditions (Request:
> >>/REST/1.0/search/ticket?query=<query>&orderby=<sort-order>&format=<format
> >>>).
> >> 
> >> Is there an equivalent one for the Queue object? When I tried it I got
> >>errorŠ
> >> 
> >> Following is query string:
> >> 
> >> /REST/1.0/search/queue?query= Name = 'My Special Queue'
> >> 
> >> And the response is ==> (RT/4.0.2 500 Server Error. Unsupported object
> >>type)
> >> 
> >> Is there a way to query/search non ticket objects using conditions?
> >
> >RT's REST API is intended mostly for working with tickets (the query
> >is actually TicketSQL as available in the normal Query Builder UI).
> >
> >If you need to work with and modify other RT objects, you'll want to
> >use RT's perl API.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111014/22902e83/attachment.sig>


More information about the rt-users mailing list