[rt-users] Problem with Saved Searches

Bjørn Skovlund Rydén bear at 247ms.com
Tue Mar 14 10:25:22 EST 2006


Hi

> -----Original Message-----
> From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-
> bounces at lists.bestpractical.com] On Behalf Of Bob Goldstein

>  I think when searches are saved, they are associated with you,
>  or with an RT group. Make sure you save in a group, and that the
>  other users are also in that same group, with the correct privs.

I am aware of this.

It seems I've located the issue, but not a solution yet.

Line 58 of share/html/Search/Elements/SelectSearchesForObjects looks like this:
% my @searches = $object->Attributes->Named('SavedSearch');

But when the queries are stored in the database, they go as these:
+----+---------------------------+-------------------------------------+
| id | name                      | description                         |
+----+---------------------------+-------------------------------------+
|  1 | Search - My Tickets       | [_1] highest priority tickets I own |
|  2 | Search - Unowned Tickets  | [_1] newest unowned tickets         |
| 32 | Search - New Cases        | New Cases                           |
| 34 | Search - Resolved Tickets | Resolved Tickets                    |
| 35 | SavedSearch               | Rejected and Resolved Tickets       |
+----+---------------------------+-------------------------------------+

The last one, 35, I've tried renaming to SavedSearch, and it now shows up.

I've attempted to change SelectSearchesForObjects to search for "Search - %" instead, but the wildcard isn't working.

Anyone have a fix to this?

Cheers, Bjørn


> >Hi,
> >
> >I can't find anyone else writing about this problem, but it seems I have
> an is
> >sue with saved searches.
> >
> >I've given my users access to LoadSavedSearch and ShowSavedSearches -
> furtherm
> >ore the admins have the CreateSavedSearch and EditSavedSearches rights.
> >
> >But for all users, I can't see ANY stored searches in the "Load Saved
> Search:"
> >-field in the QueryBuilder, however they are in the "RT at a glance".
> >
> >Anyone have any ideas how to fix this?
> >
> >I'm running a pretty new version dragged from SVN about a week ago.
> >
> >Cheers, Bjørn
> >_______________________________________________
> >http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> >
> >Community help: http://wiki.bestpractical.com
> >Commercial support: sales at bestpractical.com
> >
> >
> >Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> >Buy a copy at http://rtbook.bestpractical.com
> >
> >
> >We're hiring! Come hack Perl for Best Practical:
> http://bestpractical.com/abou
> >t/jobs.html
> >
> >
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
> 
> 
> We're hiring! Come hack Perl for Best Practical:
> http://bestpractical.com/about/jobs.html



More information about the rt-users mailing list