Re: [rt-users] Some thoughts on the Quick Search list
Jesse Vincent wrote: On Wed, Jan 31, 2007 at 10:04:39AM +1100, Taan Lindemans wrote: Does anybody else think it would be useful if the Quick Search list could be modified to include saved searches on a per user basis? I think that this might want to be another portlet, but I'd love to see it happen. Attached is a basic solution to display summaries of Saved Searches in the Quick Search list. Any Saved Searches added to your RT at a glance - Summary preferences will be added to the bottom of the list. A new title bar separates them from the queue summaries. This was achieved by placing a butchered version of QueueSummary in local/html/Elements A modified MyRT is also included to turn off the actual Saved Search Ticket list in the Summary section of the homepage. This was modified on RT-3.6.0 but seems to work on 3.6.3, however none of the changes to MyRT or ShowSearch (from where a lot of code was cut) in 3.6.3 have been implemented. It needs a lot of tidying up, and a new portlet would probably still be more desirable. Taan %# BEGIN BPS TAGGED BLOCK {{{ %# %# COPYRIGHT: %# %# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# [EMAIL PROTECTED] %# %# (Except where explicitly superseded by other copyright notices) %# %# %# LICENSE: %# %# This work is made available to you under the terms of Version 2 of %# the GNU General Public License. A copy of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software %# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %# %# %# CONTRIBUTION SUBMISSION POLICY: %# %# (The following paragraph is not intended to limit the rights granted %# to you to modify and distribute this software under the terms of %# the GNU General Public License and is only of importance to you if %# you choose to contribute your changes and enhancements to the %# community by submitting them to Best Practical Solutions, LLC.) %# %# By intentionally submitting any modifications, corrections or %# derivatives to this work, or any other work intended for use with %# Request Tracker, to Best Practical Solutions, LLC, you confirm that %# you are the copyright holder for those contributions and you grant %# Best Practical Solutions, LLC a nonexclusive, worldwide, irrevocable, %# royalty-free, perpetual, license to use, copy, create derivative %# works based on those contributions, and sublicense and distribute %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} table border=0 width=100% tr valign=top td width=70% class=boxcontainer % for my $portlet (@{$portlets-{body}}) { % _show(body,$portlet) % br / % } %#GAH! /td td class=boxcontainer % for my $portlet (@{$portlets-{summary}}) { % _show(summary,$portlet) % br / % } /td /tr /table %INIT my %allowed_components = map {$_ = 1} @{$RT::HomepageComponents}; unless (exists $session{'my_rt_portlets'}) { my ($d_portlets) = RT::System-new($session{'CurrentUser'})-Attributes-Named('HomepageSettings'); my $user = $session{'CurrentUser'}-UserObj; $session{'my_rt_portlets'} = $user-Preferences('HomepageSettings', $d_portlets-Content); } my $portlets = $session{'my_rt_portlets'}; sub _show { my $disptype = shift; my $entry = shift; my $type = $entry-{type}; if ($type eq 'component') { my $name = $entry-{name}; # security check etc. $m-comp ($name); } elsif ($type eq 'system') { $m-comp ('/Elements/ShowSearch', Name = $entry-{name}); } elsif ($type eq 'saved') { if ($disptype eq 'body') { $m-comp ('/Elements/ShowSearch', SavedSearch = $entry-{name}); } } else { $RT::Logger-error (unknown portlet type $type); } } /%INIT %# BEGIN BPS TAGGED BLOCK {{{ %# %# COPYRIGHT: %# %# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC %# [EMAIL PROTECTED] %# %# (Except where explicitly superseded by other copyright notices) %# %# %# LICENSE: %# %# This work is made available to you under the terms of Version 2 of %# the GNU General Public License. A copy of that license should have %# been provided with this software, but in any event can be snarfed %# from www.gnu.org. %# %# This work is distributed in the hope that it will be useful, but %# WITHOUT ANY WARRANTY; without even the implied warranty of %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU %# General Public License for more details. %#
Re: [rt-users] Some thoughts on the Quick Search list
Bob Goldstein wrote: On Wed, Jan 31, 2007 at 10:04:39AM +1100, Taan Lindemans wrote: Does anybody else think it would be useful if the Quick Search list could be modified to include saved searches on a per user basis? I think that this might want to be another portlet, but I'd love to see it happen. There is something similar at http://www.cs.kent.ac.uk/people/staff/tdb/rt3/ At the bottom, there is a set of callbacks, one of which puts a list of saved searches in the left navigation column. (I know I found out about this from the wiki, but I can't find the reference on the wiki right now.) FWIW, we really like these; the colorizing and a couple extra menu options add a very nice polish to the experience. (I didn't write these, I just like them. Tim Bishop gets the credit.) bobg This way you could display summaries of categorized (by custom field) tickets without displaying a list of tickets. This would make for a more versatile rt dashboard. Of coarse you could set up a separate queue for each category but this is overkill in some situations such as having one queue for software issues with categories for bugs, feature requests etc. I don't know how difficult this is to implement however. Taan ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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 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 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 The Home Page Saved Searches contrib could be adapted to do this - http://wiki.bestpractical.com/index.cgi?HomePageSavedSearches Steve ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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
RE: [rt-users] Some thoughts on the Quick Search list
Hi With this diffs I added the SavedSearch in the Home-site. It works, but some times I recive the following error: System error error: RT::Attribute::Name Unimplemented in RT::Attributes. (/opt/rt3/lib/RT/Attributes_Overlay.pm line 81) context:... 492:else { 493:my ( $package, $filename, $line ); 494:( $package, $filename, $line ) = caller; 495: 496:die $AUTOLOAD Unimplemented in $package. ($filename line $line) \n; 497:} 498: 499:} 500: ... code stack: /usr/lib/perl5/site_perl/5.8.5/DBIx/SearchBuilder/Record.pm:496 /opt/rt3/lib/RT/Attributes_Overlay.pm:81 /opt/rt3/lib/RT/Attributes_Overlay.pm:73 /opt/rt3/lib/RT/Attributes_Overlay.pm:88 /opt/rt3/lib/RT/Attributes_Overlay.pm:119 /opt/rt3/share/html/Search/Elements/SelectSearchesForObjects:58 /opt/rt3/local/html/index.html:97 /opt/rt3/local/html/autohandler:242 What du you think about? Michael Peer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Turner Sent: Thursday, 01 February, 2007 15:11 To: Bob Goldstein Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Some thoughts on the Quick Search list Bob Goldstein wrote: On Wed, Jan 31, 2007 at 10:04:39AM +1100, Taan Lindemans wrote: Does anybody else think it would be useful if the Quick Search list could be modified to include saved searches on a per user basis? I think that this might want to be another portlet, but I'd love to see it happen. There is something similar at http://www.cs.kent.ac.uk/people/staff/tdb/rt3/ At the bottom, there is a set of callbacks, one of which puts a list of saved searches in the left navigation column. (I know I found out about this from the wiki, but I can't find the reference on the wiki right now.) FWIW, we really like these; the colorizing and a couple extra menu options add a very nice polish to the experience. (I didn't write these, I just like them. Tim Bishop gets the credit.) bobg This way you could display summaries of categorized (by custom field) tickets without displaying a list of tickets. This would make for a more versatile rt dashboard. Of coarse you could set up a separate queue for each category but this is overkill in some situations such as having one queue for software issues with categories for bugs, feature requests etc. I don't know how difficult this is to implement however. Taan ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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 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 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 The Home Page Saved Searches contrib could be adapted to do this - http://wiki.bestpractical.com/index.cgi?HomePageSavedSearches Steve ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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 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
[rt-users] Some thoughts on the Quick Search list
Does anybody else think it would be useful if the Quick Search list could be modified to include saved searches on a per user basis? This way you could display summaries of categorized (by custom field) tickets without displaying a list of tickets. This would make for a more versatile rt dashboard. Of coarse you could set up a separate queue for each category but this is overkill in some situations such as having one queue for software issues with categories for bugs, feature requests etc. I don't know how difficult this is to implement however. Taan ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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
Re: [rt-users] Some thoughts on the Quick Search list
On Wed, Jan 31, 2007 at 10:04:39AM +1100, Taan Lindemans wrote: Does anybody else think it would be useful if the Quick Search list could be modified to include saved searches on a per user basis? I think that this might want to be another portlet, but I'd love to see it happen. This way you could display summaries of categorized (by custom field) tickets without displaying a list of tickets. This would make for a more versatile rt dashboard. Of coarse you could set up a separate queue for each category but this is overkill in some situations such as having one queue for software issues with categories for bugs, feature requests etc. I don't know how difficult this is to implement however. Taan ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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 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
Re: [rt-users] Some thoughts on the Quick Search list
On Wed, Jan 31, 2007 at 10:04:39AM +1100, Taan Lindemans wrote: Does anybody else think it would be useful if the Quick Search list could be modified to include saved searches on a per user basis? I think that this might want to be another portlet, but I'd love to see it happen. There is something similar at http://www.cs.kent.ac.uk/people/staff/tdb/rt3/ At the bottom, there is a set of callbacks, one of which puts a list of saved searches in the left navigation column. (I know I found out about this from the wiki, but I can't find the reference on the wiki right now.) FWIW, we really like these; the colorizing and a couple extra menu options add a very nice polish to the experience. (I didn't write these, I just like them. Tim Bishop gets the credit.) bobg This way you could display summaries of categorized (by custom field) tickets without displaying a list of tickets. This would make for a more versatile rt dashboard. Of coarse you could set up a separate queue for each category but this is overkill in some situations such as having one queue for software issues with categories for bugs, feature requests etc. I don't know how difficult this is to implement however. Taan ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 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 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 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