stats from Archive

Moderator: crythias

Locked
palcic
Znuny newbie
Posts: 14
Joined: 24 Oct 2012, 12:19
Znuny Version: 3.1.9

stats from Archive

Post by palcic »

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!
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: stats from Archive

Post by bayerex »

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
reneeb
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

Post by reneeb »

I have the following code added to ma Kernel/System/TicketSearch.pm:

Code: Select all

    my @Caller = caller(0);
    if ( $Caller[0] =~ m{Kernel::System::Stats::(?:Static|Dynamic)}xms ) {
        $Param{ArchiveFlags} = ['y','n'];
    }
I added at the very beginning of the sub TicketSearch right after "my ($Self, %Param) = @_".
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
Locked