Search for logged-in user as requestor

Hi,

I would like to be able to create saved searches that will find
tickets where the logged in user is the Requestor.

This is easy for Owner as you can use Owner = ‘CurrentUser’.

Is there a way to do this for Requestor though? I tried Requestor =
CurrentUser’ but that doesn’t work.

I found this on the wiki, but that only seems to apply to RT2:

http://wiki.bestpractical.com/view/CurrentUserEmail

Any help much appreciated!!

Justin

Hello,Justin,
I use in similar saved searches for V3.8.1 the clause:

Owner.Id = ‘CurrentUser

so maybe Requestor.Id would do?
HTH,
Gabriele Franzini
ICT Applications Manager
Nerviano Medical Sciences SRL
20014 Nerviano Italy

Message: 1
Date: Wed, 7 Jan 2009 09:43:12 +0000
From: Justin Hayes justin.hayes@orbisuk.com
Subject: [rt-users] Search for logged-in user as requestor

Hi,

I would like to be able to create saved searches that will find tickets
where the logged in user is the Requestor.

This is easy for Owner as you can use Owner =
CurrentUser’.

Is there a way to do this for Requestor though? I tried
Requestor =

Thanks for the suggestion Gabriele but unfortunately that doesn’t seem
to work for me :frowning:

Oh I’m using 3.6.3 btw.

JustinOn 7 Jan 2009, at 15:00, Franzini, Gabriele [Nervianoms] wrote:

Hello,Justin,
I use in similar saved searches for V3.8.1 the clause:

Owner.Id = ‘CurrentUser

so maybe Requestor.Id would do?
HTH,
Gabriele Franzini
ICT Applications Manager
Nerviano Medical Sciences SRL
20014 Nerviano Italy


Message: 1
Date: Wed, 7 Jan 2009 09:43:12 +0000
From: Justin Hayes justin.hayes@orbisuk.com
Subject: [rt-users] Search for logged-in user as requestor

Hi,

I would like to be able to create saved searches that will find
tickets
where the logged in user is the Requestor.

This is easy for Owner as you can use Owner =
CurrentUser’.

Is there a way to do this for Requestor though? I tried
Requestor =
CurrentUser’ but that doesn’t work.

I found this on the wiki, but that only seems to apply to RT2:

http://wiki.bestpractical.com/view/CurrentUserEmail

Any help much appreciated!!

Justin


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

In case anyone’s interested I figured out how to do this

in share/html/Elements/ShowSearch you have:

$SearchArg->{‘Query’} =~ s/CurrentUser/$session{‘CurrentUser’}-

Id/ge;

I’ve added a line for CurrentUserEmail so now I have:

$SearchArg->{‘Query’} =~ s/CurrentUser/$session{‘CurrentUser’}-

Id/ge;
$SearchArg->{‘Query’} =~ s/CurrentUserEmail/
$session{‘CurrentUser’}->EmailAddress/ge;

You can then use the following in searches that you add to the At A
Glance screen:

Requestor.EmailAddress = ‘CurrentUserEmail

Cheers,

JustinOn 7 Jan 2009, at 09:43, Justin Hayes wrote:

Hi,

I would like to be able to create saved searches that will find
tickets where the logged in user is the Requestor.

This is easy for Owner as you can use Owner = ‘CurrentUser’.

Is there a way to do this for Requestor though? I tried Requestor
= ‘CurrentUser’ but that doesn’t work.

I found this on the wiki, but that only seems to apply to RT2:

CurrentUserEmail - Request Tracker Wiki

Any help much appreciated!!

Justin


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com