Add "My Requests" to RT at a Glance

I’d like to add a “My Requests” system saved search and make it part of the
default RT at a Glance. This would be similar to the view that users get on
the SelfService page but needs to be available in the full interface. I
searched the docs, wiki and the archives of this list but haven’t found
anything. Has anyone done this?

Thanks,
John

I’d like to add a “My Requests” system saved search and make it part
of the default RT at a Glance. This would be similar to the view that
users get on the SelfService page but needs to be available in the
full interface. I searched the docs, wiki and the archives of this
list but haven’t found anything. Has anyone done this?

Hi John,

What a coincidence, I was just doing this yesterday for our new RT
server that I am testing, note it is version 3.8.6rc1, but this will
probably work with earlier 3.8.x releases.

Edit your RT_SiteConfig.pm and add MyRequests to your list of
$HomepageComponents, then restart apache. Now, when logged into your RT
web account, go to your Preferences->RT at a glance, and add MyRequests
to the body section.

Unfortunately, there is one more step, since now when going to my Home
page, I see this error message:

Predefined search My Requests not found

So, logged in to the web interface as the RT admin (so all users would
see this saved search), I went to the Tickets->Advanced page and entered
this Query:

Requestor.id = ‘CurrentUser’ AND ( Status = ‘new’ OR Status = ‘open’ )

Hit the Apply button and saved the search under RT System’s saved
searches with the Description: “My Requests”

Now go back to your Home page and you should see the My Requests box
correctly displayed. If you want to change what info is displayed for
your requests, you will have to edit the saved search and modify the
Advanced->Format or Edit->Display Columns section.

~Jason

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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
/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/

smime.p7s (3.81 KB)

I’d like to add a “My Requests” system saved search and make it part
of the default RT at a Glance. This would be similar to the view that
users get on the SelfService page but needs to be available in the
full interface. I searched the docs, wiki and the archives of this
list but haven’t found anything. Has anyone done this?

What a coincidence, I was just doing this yesterday for our new RT
server that I am testing, note it is version 3.8.6rc1, but this will
probably work with earlier 3.8.x releases.

Edit your RT_SiteConfig.pm and add MyRequests to your list of
$HomepageComponents, then restart apache. Now, when logged into your RT
web account, go to your Preferences->RT at a glance, and add MyRequests
to the body section.

You shouldn’t need this part, this is just for on-disk homepage
components. If this was required, a normal user wouldn’t be able to
save a private search and put it on their homepage.

Unfortunately, there is one more step, since now when going to my Home
page, I see this error message:

Predefined search My Requests not found

So, logged in to the web interface as the RT admin (so all users would
see this saved search), I went to the Tickets->Advanced page and entered
this Query:

Requestor.id = ‘CurrentUser’ AND ( Status = ‘new’ OR Status = ‘open’ )

Hit the Apply button and saved the search under RT System’s saved
searches with the Description: “My Requests”

This is all that should be required, since you’ll see a Saved Search:
My Requests on the homepage editing UI

Unfortunately, there is one more step, since now when going to my Home
page, I see this error message:

Predefined search My Requests not found

So, logged in to the web interface as the RT admin (so all users would
see this saved search), I went to the Tickets->Advanced page and entered
this Query:

Requestor.id = ‘CurrentUser’ AND ( Status = ‘new’ OR Status = ‘open’ )

Hit the Apply button and saved the search under RT System’s saved
searches with the Description: “My Requests”

This is all that should be required, since you’ll see a Saved Search:
My Requests on the homepage editing UI

Okay, I see it, but maybe because I saved it under the RT System’s saved
searches, it appears in the list above the other available saved
searches, but without “Saved Search:” prepended to it.

It is somewhat of a pain to have to first create that saved search
before having this available on the home page since I would think it
would be a very common thing to want to add. Since this is available to
SelfService users, why can’t it be made easier for privileged users to
have access to the same thing?

Thanks,
~Jason

/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/

smime.p7s (3.81 KB)

Unfortunately, there is one more step, since now when going to my Home
page, I see this error message:

Predefined search My Requests not found

So, logged in to the web interface as the RT admin (so all users would
see this saved search), I went to the Tickets->Advanced page and entered
this Query:

Requestor.id = ‘CurrentUser’ AND ( Status = ‘new’ OR Status = ‘open’ )

Hit the Apply button and saved the search under RT System’s saved
searches with the Description: “My Requests”

This is all that should be required, since you’ll see a Saved Search:
My Requests on the homepage editing UI

Okay, I see it, but maybe because I saved it under the RT System’s saved
searches, it appears in the list above the other available saved
searches, but without “Saved Search:” prepended to it.

Yes, global searches like that don’t have the prefix, try a personal
or group search.

It is somewhat of a pain to have to first create that saved search
before having this available on the home page since I would think it
would be a very common thing to want to add. Since this is available to
SelfService users, why can’t it be made easier for privileged users to
have access to the same thing?

It isn’t actually that common a request in my experience. Many
privileged users are working on outside requests, rather than their
own requests. If someone refactored SelfServive/Elements/MyRequests
and addeed an /Elements/MyRequests that used the shared code and sent
a patch I don’t see any reason it wouldn’t be considered for inclusion
in a future RT.

But I’ve usually just added a saved search when people need it since
it grants better control over the format and displayed columns.

-kevin

Jason,

Many thanks. It turns out that this works fine without the mods to
the config file. I just created the system saved search and it shows
up fine for my users. In fact, I modified the default at a glance
page and have happier users for it.

What exactly does the change in the config file do? Perhaps it was
only necessary in an older version of RT.

Thanks,
JohnOn 10/13/09, Jason A. Smith smithj4@bnl.gov wrote:

On Tue, 2009-10-13 at 05:01 -0400, John Colton wrote:

I’d like to add a “My Requests” system saved search and make it part
of the default RT at a Glance. This would be similar to the view that
users get on the SelfService page but needs to be available in the
full interface. I searched the docs, wiki and the archives of this
list but haven’t found anything. Has anyone done this?

Hi John,

What a coincidence, I was just doing this yesterday for our new RT
server that I am testing, note it is version 3.8.6rc1, but this will
probably work with earlier 3.8.x releases.

Edit your RT_SiteConfig.pm and add MyRequests to your list of
$HomepageComponents, then restart apache. Now, when logged into your RT
web account, go to your Preferences->RT at a glance, and add MyRequests
to the body section.

Unfortunately, there is one more step, since now when going to my Home
page, I see this error message:

Predefined search My Requests not found

So, logged in to the web interface as the RT admin (so all users would
see this saved search), I went to the Tickets->Advanced page and entered
this Query:

Requestor.id = ‘CurrentUser’ AND ( Status = ‘new’ OR Status = ‘open’ )

Hit the Apply button and saved the search under RT System’s saved
searches with the Description: “My Requests”

Now go back to your Home page and you should see the My Requests box
correctly displayed. If you want to change what info is displayed for
your requests, you will have to edit the saved search and modify the
Advanced->Format or Edit->Display Columns section.

~Jason


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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

/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/