RE: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-31 Thread David Smithson
Hey, why isn't Owner = '__CurrentUser__' working for me? I can't figure this one out. It's pretty simple it seems, but __CurrentUser__ isn't getting replaced in the query: Queue = 'General' AND Owner = '__CurrentUser__' What am I missing? David Smithson

Re: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-31 Thread Todd Chapman
I think the problem is that the replacement of __CurrentUser__ with the user id is done in /Elements/ShowSearch. That is only used for showing searches on the RT homepage. The link at the top of the search is to the query builder with the value replaced. Loading it from saved searches isn't going

RE: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-31 Thread David Smithson
] Sent: Monday, July 31, 2006 8:30 PM To: David Smithson Cc: Drew Taylor; rt-users@lists.bestpractical.com Subject: Re: [rt-users] Searching by CurrentUser with QueryBuilder I think the problem is that the replacement of __CurrentUser__ with the user id is done in /Elements/ShowSearch. That is only

Re: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-31 Thread Todd Chapman
PROTECTED] Sent: Monday, July 31, 2006 8:30 PM To: David Smithson Cc: Drew Taylor; rt-users@lists.bestpractical.com Subject: Re: [rt-users] Searching by CurrentUser with QueryBuilder I think the problem is that the replacement of __CurrentUser__ with the user id is done in /Elements/ShowSearch

RE: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-31 Thread David Smithson
] Sent: Monday, July 31, 2006 8:52 PM To: David Smithson Cc: Drew Taylor; rt-users@lists.bestpractical.com Subject: Re: [rt-users] Searching by CurrentUser with QueryBuilder In RT::Tickets::_WatcherLimit, try changing: $o-Load($value); to: $o-Load( $value =~ /__CurrentUser__/ ? $self-CurrentUser

RE: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-21 Thread Ole Craig
On Wed, 2006-07-19 at 10:50 -0600, Ole Craig wrote: On Tue, 2006-07-11 at 10:13 -0400, Drew Taylor wrote: Thanks! That did the trick. [...] I have a fresh 3.6.0 installation we're customizing. We'd like to create a saved search that searches for Owner = '$RT::CurrentUser' (as

RE: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-19 Thread Ole Craig
On Tue, 2006-07-11 at 10:13 -0400, Drew Taylor wrote: Thanks! That did the trick. [...] I have a fresh 3.6.0 installation we're customizing. We'd like to create a saved search that searches for Owner = '$RT::CurrentUser' (as opposed to a static username like Owner = 'drew'), but this

RE: [rt-users] Searching by CurrentUser with QueryBuilder

2006-07-11 Thread Drew Taylor
Thanks! That did the trick. Drew -Original Message- From: Todd Chapman [mailto:[EMAIL PROTECTED] Sent: Monday, July 10, 2006 11:19 PM To: Drew Taylor Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Searching by CurrentUser with QueryBuilder On Mon, Jul 10, 2006 at 05:44