Hi!
I have a rule for archive (closed tickets that are older than 3 months). Stats are working for months that are newest than 3 months. How can I create stats for those months that tickets are in an archive?
Thanks!
stats from Archive
Moderator: crythias
Re: stats from Archive
Hi, did you ever find a solution to this?
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31
Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31
Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: stats from Archive
I have the following code added to ma Kernel/System/TicketSearch.pm:
I added at the very beginning of the sub TicketSearch right after "my ($Self, %Param) = @_".
Code: Select all
my @Caller = caller(0);
if ( $Caller[0] =~ m{Kernel::System::Stats::(?:Static|Dynamic)}xms ) {
$Param{ArchiveFlags} = ['y','n'];
}
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de