RT::Extension::StallFutureTicket - Stall a new ticket automatically when start time is set to a future date
This RT Extension allows to automatically stall created tickets with a start time in the future.
This extension based on the following modules:
RT >= 4.0.0 Date::Manip >= 6.25
To install this extension, run the following commands:
perl Makefile.PL make make test make install
To enable this extension edit the RT site configuration located in $RT_HOME/etc/RT_SiteConfig.pm (where $RT_HOME is the path to your RT installation):
$RT_HOME/etc/RT_SiteConfig.pm
$RT_HOME
Set(@Plugins,qw(RT::Extension::StallFutureTicket));
You must allow to set new tickets to stalled:
stalled
Set(%Lifecycles, default => { [...] transitions => { '' => [qw(new open resolved stalled)], [...] } [...] } );
This is just an abbreviation taken from RT's main configuration file under $RT_HOME/etc/RT_Config.pm. Note the added stalled.
$RT_HOME/etc/RT_Config.pm
To overwrite Date::Manip's default configuration you may set the following:
Date::Manip
Set(%DateManipConfig, ( 'WorkDayBeg', '9:00', 'WorkDayEnd', '17:00', #'WorkDay24Hr', '0', #'WorkWeekBeg', '1', #'WorkWeekEnd', '7' ));
You can find more information about the configurable parameters under http://search.cpan.org/dist/Date-Manip/lib/Date/Manip/Config.pod#BUSINESS_CONFIGURATION_VARIABLES.
After all your new configuration will take effect after restarting your RT environment:
rm -rf $RT_HOME/var/mason_data/obj/* && service apache2 restart
This is an example for deleting the mason cache and restarting the Apache HTTP web server on a Debian GNU/Linux based operating system.
Benjamin Heisig, <bheisig@synetics.de>
You can find documentation for this module with the perldoc command.
perldoc
perldoc RT::Extension::StallFutureTicket
You can also look for information at:
Search CPAN
http://search.cpan.org/dist/RT-Extension-StallFutureTicket/
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=RT-Extension-StallFutureTicket
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/RT-Extension-StallFutureTicket
CPAN Ratings
http://cpanratings.perl.org/d/RT-Extension-StallFutureTicket
Please report any bugs or feature requests to the author.
Copyright 2011 synetics GmbH, <http://i-doit.org/>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Request Tracker (RT) is Copyright Best Practical Solutions, LLC.
To install RT::Extension::StallFutureTicket, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RT::Extension::StallFutureTicket
CPAN shell
perl -MCPAN -e shell install RT::Extension::StallFutureTicket
For more information on module installation, please visit the detailed CPAN module installation guide.