Simple search "link" creation?

I’m using RT 3.8.8 and am curious if it is possible to create a search and present it on another web page as a link.

For example, I have certain RT queues for products. On an internal product page, I’d like to have a link: “Click here to see all RT support tickets for this product”. If they click, it will direct them to RT where they would be forced to log in to RT and then be presented with the results of the search I created (listing all open tickets in that product queue).

Can this be done?

Thanks!

Hi Joseph

just link to something like

http://rt.yoyodyne.com/Search/Results.html?Query='CF.{Product%20code}‘LIKE’CCT0104F’
or
http://rt.yoyodyne.com/Search/Results.html?Query='CF.{Product
code}‘LIKE’CCT0104F’

You can do more complex searches too.

GerardOn 2012-03-02 18:44, Joseph Spenner wrote:

I’m using RT 3.8.8 and am curious if it is possible to create a search
and present it on another web page as a link.

For example, I have certain RT queues for products. On an internal
product page, I’d like to have a link: “Click here to see all RT
support tickets for this product”. If they click, it will direct them
to RT where they would be forced to log in to RT and then be presented
with the results of the search I created (listing all open tickets in
that product queue).

Can this be done?

Thanks!

Gerard:
Thanks! That’s exactly what I needed! Got the syntax for a specific queue and product:

http://myRT/Search/Results.html?Query=%27Queue%27=%27Our%20Products%27%20AND%20%27CF.{System}%27=%27oscillationOverthrustor%27

Worked great!
Thanks again!From: Gerard FENELON gerard@eve-team.com
To: rt-users@lists.bestpractical.com
Sent: Friday, March 2, 2012 11:19 AM
Subject: Re: [rt-users] Simple search “link” creation?

Hi Joseph

just link to something like

http://rt.yoyodyne.com/Search/Results.html?Query='CF.{Product%20code}‘LIKE’CCT0104F’
or
http://rt.yoyodyne.com/Search/Results.html?Query='CF.{Product code}‘LIKE’CCT0104F’

You can do more complex searches too.

Gerard

I’m using RT 3.8.8 and am curious if it is possible to create a search and present it on another web page as a link.

For example, I have certain RT queues for products. On an internal product page, I’d like to have a link: “Click here to see all RT support tickets for this product”. If they click, it will direct them to RT where they would be forced to log in to RT and then be presented with the results of the search I created (listing all open tickets in that product queue).

Can this be done?

Thanks!

RT Training Sessions (http://bestpractical.com/services/training.html)

  • Boston — March 5 & 6, 2012

Gerard:
Thanks! That’s exactly what I needed! Got the syntax for a specific
queue and product:

Note that you can always build the search in the RT web interface and
then view the results and copy the link as well.

Gerard:
Thanks! That’s exactly what I needed! Got the syntax for a specific
queue and product:

Note that you can always build the search in the RT web interface and
then view the results and copy the link as well.

Thomas:
I was thinking this initially, but it appears RT does a POST such that the string itself does not show up on the URL. Unless you are talking about something different? If I build the search, the URL is simply:

http://myrt/Search/Build.html

However, if I then click on the “Advanced” tab, I can see the pieces of the search-- but even this isn’t completely compatible with the string needed for the full URL.

I was thinking this initially, but it appears RT does a POST such
that the string itself does not show up on the URL. Unless you are
talking about something different? If I build the search, the URL is
simply:

http://myrt/Search/Build.html

Click “Show Results”. The URL will then be the link you want.

I was thinking this initially, but it appears RT does a POST such
that the string itself does not show up on the URL. Unless you are
talking about something different? If I build the search, the URL is
simply:

http://myrt/Search/Build.html

Click “Show Results”. The URL will then be the link you want.

Ok, I get a really big URL:

http://myrt/Search/Results.html?Format='%20%20%20<b><a%20href%3D"__WebPath__%2FTicket%2FDisplay.html%3Fid%3D__id__">__id__<%2Fa><%2Fb>%2FTITLE%3A%23'%2C '<b><a%20href%3D"__WebPath__%2FTicket%2FDisplay.html%3Fid%3D__id__">__Subject__<%2Fa><%2Fb>%2FTITLE%3ASubject'%2C '__Status__'%2C '__QueueName__'%2C '__OwnerName__'%2C '__Priority__'%2C '__NEWLINE__'%2C ''%2C '<small>__Requestors__<%2Fsmall>'%2C '<small>__CreatedRelative__<%2Fsmall>'%2C '<small>__ToldRelative__<%2Fsmall>'%2C '<small>__LastUpdatedRelative__<%2Fsmall>'%2C '<small>__TimeLeft__<%2Fsmall>'&Order=ASC|ASC|ASC|ASC&OrderBy=id|||&Query=Queue%20%3D%20'My%20Stuff'&RowsPerPage=50&SavedChartSearchId=new

But it does work, too.
Thanks for the info!