RT::Extension::QueueChangeOnUpdate
Below the installer script for the RT plugin QueueChangeOnUpdate.
This plugin adds a dropdown box to your ticket update page (comment/reply page) which will allow you to change the queue of a ticket along with adding a comment/reply.
- RT-Extension-QueueChangeOnUpdate.sh
#!/bin/bash # --- # This script installs the Request Tracker plugin RT::Extension::QueueChangeOnUpdate # --- # RT installation path rt_dir=/opt/rt4 # Plugin directory paths UpdateHTML_dir=local/plugins/RT-Extension-QueueChangeOnUpdate/html/Callbacks/QueueChangeOnUpdate/Ticket/Update.html Extension_dir=local/plugins/RT-Extension-QueueChangeOnUpdate/lib/RT/Extension lib_dir=local/plugins/RT-Extension-QueueChangeOnUpdate/lib # --- # Create the directories, this is based on an RT installation in /opt/rt4 # --- mkdir -p $rt_dir/$UpdateHTML_dir mkdir -p $rt_dir/$Extension_dir # --- # Create the AfterWorked file # --- echo '<tr> <td class="label">Queue:</td> <td> <& /Elements/SelectQueue, Name => "Queue", Default => $Ticket->QueueObj->Id, InTable => 1, &> </td> </tr> <%ARGS> $Ticket </%ARGS>' > $rt_dir/$UpdateHTML_dir/AfterWorked # --- # Create the perllocal.pod file # --- echo '=head2 Mon Feb 13 09:52:24 2012: C<Module> L<RT::Extension::QueueChangeOnUpdate|RT::Extension::QueueChangeOnUpdate> =over 4 =item * C<installed into: /opt/rt4/local/plugins/RT-Extension-QueueChangeOnUpdate/lib> =item * C<LINKTYPE: dynamic> =item * C<VERSION: 0.01> =item * C<EXE_FILES: > =back =head2 Mon Feb 13 11:52:17 2012: C<Module> L<RT::Extension::QueueChangeOnUpdate|RT::Extension::QueueChangeOnUpdate> =over 4 =item * C<installed into: /opt/rt4/local/plugins/RT-Extension-QueueChangeOnUpdate/lib> =item * C<LINKTYPE: dynamic> =item * C<VERSION: 0.01> =item * C<EXE_FILES: > =back' > $rt_dir/$lib_dir/perllocal.pod # --- # Create the QueueChangeOnUpdate.pm file # --- echo "use 5.008003; use strict; use warnings; package RT::Extension::QueueChangeOnUpdate; our \$VERSION = '0.01'; =head1 NAME RT::Extension::QueueChangeOnUpdate - edit ticket's Queue on reply/comment =head1 DESCRIPTION This extension adds often requested feature - update of ticket's Queue on reply and comment. This is for RT 4.0.x. =head1 INSTALLATION To install run the script, it'll create all the files and directories. Register 'RT::Extension::QueueChangeOnUpdate' in the site config; Set(@Plugins, qw( RT::Extension::QueueChangeOnUpdate ... other plugins you may have ... )); If you're also using RT::Extension::CustomFieldsOnUpdate then make sure you include the QueueChangeOnUpdate plugin before the CustomFieldsOnUpdate. Set(@Plugins, qw( RT::Extension::QueueChangeOnUpdate RT::Extension::CustomFieldsOnUpdate ... other plugins you may have ... )); =cut =head1 AUTHOR Bart E<lt>bart@pleh.infoE<gt> =head1 LICENSE Under the same terms as perl itself. =cut 1;" > $rt_dir/$Extension_dir/QueueChangeOnUpdate.pm
