I need this all server side in PERL.
A better CLI “Input” example would be:
rt show ticket/3,4,5,6 where 3,4,5,6 are Ticket IDs
It would be very useful to do something like:
Result.html?ids=1:2:3:4:5 in the querystring…
However, if I can’t get that, I was hoping to duplicate the functionality of
Result.html with something like:
my $tickets = RT::Tickets->new(1,2,3,4,5);
That would be extremely useful.-----Original Message-----
From: Yedidyah Bar-David [mailto:didi@isoc.org.il]
Sent: Tuesday, September 08, 2009 12:23 PM
To: Joel Hartshorn
Cc: rt-devel@lists.bestpractical.com
Subject: Re: [Rt-devel] Ticket Collection via List of Ticket IDs
On Tue, Sep 08, 2009 at 11:34:18AM -0700, Joel Hartshorn wrote:
Ok,
I have spent a bit of time looking, but have not found a simple solution.
Is there a simple way to call the Search Result.html page with a list
of Ticket IDs and have the page display the list of tickets? This
would be similar to the CLI option of:
rt show ticket/3
Thanks,
Joel Hartshorn
Using the Query Builder (“Edit Search”), you can build a search that says
“id is number1” OR “id is number2” etc. Then you’d get a results page, and
if you then press “Bookmarkable link” you get it with GET params, which
after editing out the irrelevant parts, can be reduced to
http://your.domain/Search/Results.html?Query= id = num1 OR id = num2
Didi
smime.p7s (3.28 KB)