[Rt-devel] Creating Group Saved Searches with dynamic RT variable references?

Andy Harrison aharrison at gmail.com
Mon Feb 28 16:25:12 EST 2005

On Wed, 23 Feb 2005 12:01:18 -0700, Stephen Dowdy <sdowdy at ucar.edu> wrote:
> I'm using Stephen Turner's "Saved Searches" Mason component on the "Home" page:
> (http://wiki.bestpractical.com/index.cgi?HomePageSavedSearches)
> and wanted to construct some Group-wide saved searches for shortcut queries.
> However, for a query by owner, the Query-Builder form only allows static comparisons
> (i.e. selecting "Owner" is "sdowdy" results in " Owner = 'xx' " where 'xx' is the
> numeric 'Id' of my user.
> I tried using the Advanced builder and typing:
> Owner = $session{'CurrentUser'}->Id
> but it stripped that to "Owner = 'CurrentUser'"
> How would i go about building a Group saved search query that dynamically references the CurrentUser?
> (or any variable reference for that matter)

I didn't delve too deeply, but where it looks like it's shoveling the
query contents into the 'apply_escapes' mason method, it doesn't look
very promising.

However, if it's a consistent query, create another box modeled after
Elements/MyRequests and add it to the index.html page.

Andy Harrison

More information about the Rt-devel mailing list