[rt-users] How to search in a Scrip?
Todd Chapman
rt at chaka.net
Fri Mar 12 12:53:55 EST 2004
RT-3.0.9
I am writing an OnCreate scrip that will search the
content of the ticket for a certain value. If found
I want to search a queue for the first ticket with
that value in a certain custom field. If I find
a matching ticket I will then merge the new ticket
into it.
What I know how to do:
-Search content of new ticket
-Merge new ticket
What I don't know how to do:
-Build a seach for a ticket
Do I just call RT::Tickets->new followed
by a few calls to LimitQueue and LimitCustomField
and finally loop through the tickets?
Anyone have a code sample to get me started?
Thanks!
-Todd
More information about the rt-users
mailing list