Stats modul, Ticketlist report

Moderator: crythias

Locked
gcekol
Znuny newbie
Posts: 8
Joined: 14 Feb 2013, 10:50
Znuny Version: 3.2.1
Real Name: Goran Čekol
Company: MPR

Stats modul, Ticketlist report

Post by gcekol »

Is it possible to change the order of columns in Ticketlist report?
If yes, how?

Thank you!
gcekol
Znuny newbie
Posts: 8
Joined: 14 Feb 2013, 10:50
Znuny Version: 3.2.1
Real Name: Goran Čekol
Company: MPR

Re: Stats modul, Ticketlist report

Post by gcekol »

I'm still looking for a solution.
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 modul, Ticketlist report

Post by reneeb »

You have to edit the Kernel/System/Stats/Dynamic/*.pm

E.g. in TicketList.pm you'll find

Code: Select all

        ATTRIBUTE:
        for my $Attribute ( @{$SortedAttributesRef} ) {
            next ATTRIBUTE if !$TicketAttributes{$Attribute};
            push @ResultRow, $Ticket{$Attribute};
        }
        push @StatArray, \@ResultRow;
Here you have to order the columns the way you want...
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
gcekol
Znuny newbie
Posts: 8
Joined: 14 Feb 2013, 10:50
Znuny Version: 3.2.1
Real Name: Goran Čekol
Company: MPR

Re: Stats modul, Ticketlist report

Post by gcekol »

reneeb thank you for your answer.

Since I'm new to OTRS, I'll have to ask you to be more specific.

I'm planning to have more then one report (ticketlist type). Is it possible to set that all in Ticketlist.pm?

An example would be great.

Thank you!
othoma
Znuny newbie
Posts: 25
Joined: 04 May 2015, 11:45
Znuny Version: 4.0.6

Re: Stats modul, Ticketlist report

Post by othoma »

hi there, I'm looking for the exact same thing.

@gcekol did you find a way to do what you want?

@reneeb could you please give more information on what code we have to fill in the file?

What I'm trying is having the "Priority" Column as the first column. Others (Title, date created, date closed, and dynamic fields are in the correct order)

But priority is still between date closed and dynamic fields.

Thanks a lot
Locked