[rt-users] Can a scrip do a search like RT::Client::REST does?

ktm at rice.edu ktm at rice.edu
Thu Jun 13 13:44:46 EDT 2013

On Thu, Jun 13, 2013 at 10:38:06AM -0700, Landon wrote:
> My scrip looks for currently open Incidents that are related to each of the
> IP addresses in CF.{IP} on an Incident Report.  If it finds one it links
> the Incident Report to that Incident thus making it unnecessary for someone
> to do it manually later.  This might be changed to CustomerID or something
> later.
> Anyway - The snippet from my scrip that I'd like to modify with something
> more native instead of using RT::Client::REST is the following.  Is there a
> way to search for tickets without using RT::Client::REST?  I've been
> reading through page after page but I'm not able to figure this one out.
>  Is this the only way I'll be able to do it?  It works but it logs itself
> in to RT via the web interface each time a new Incident Report comes in.
> use RT::Client::REST;
> ...

Hi Landon,

I think you should be able to use RT::Search from your scrip directly.
Check out the API docs.


More information about the rt-users mailing list