In case anyone else needs to do this and for the sake of the archives,
here's how I got it working:
I created html/Callbacks/KAF/Elements/ShowSearch/ModifySearch as
follows:
# Replace any instances of __CurrentUserEmail__ with
$session{'CurrentUser'}->EmailAddress
$Search->{'Query'} =~ s/__CurrentUserEmail__/$session{'CurrentUser'}-
>EmailAddress/ge;
</%init>
<%args>
$Search => undef
</%args>
Then creating a saved search called "My Requests" as follows:
Requestor.EmailAddress = '__CurrentUserEmail__' AND ( Status = 'new'
OR Status = 'open' )
'<b><a href="/rt3/Ticket/Display.html?id=__id__">__Subject__</a></b>/
TITLE:Subject', '__Status__', '__QueueName__'
Adding "My Requests" to the Summary area works well enough for now.
Might fiddle with the subject or display results at some point to make
sure it stays short and sweet.
Thanks for everyone's help,
Steve
On Jan 7, 2008, at 11:10 PM, Steve Cochran wrote:
Good info, thanks.
So that means to have a "My Requests" widget on the "RT At A Glance"
page, I'll have to find where the hack to turn __CurrentUser__ into
the username happens, and make it happen for my widget as well.
Seems like what I want to do should be really easy. Display a widget
that shows what the self service interface would show.
Steve
On Jan 7, 2008, at 9:59 PM, Todd Chapman wrote:
What is going on is that some searches used on the front page have
that special variable in them and the components that display the
search results substitute __CurrentUser__ before passing the search
to the search engine. It would be better if search parser handled
this at a lower level, but it doesn't.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
If you sign up for a new RT support contract before December 31,
we'll take
up to 20 percent off the price. This sale won't last long, so get in
touch today. Email us at [EMAIL PROTECTED] or call us at +1
617 812 0745.
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly
Media.Buy a copy at http://rtbook.bestpractical.com
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:
If you sign up for a new RT support contract before December 31, we'll take
up to 20 percent off the price. This sale won't last long, so get in touch today.
Email us at [EMAIL PROTECTED] or call us at +1 617 812 0745.
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com