i want to expand the info in the customer panel in ticket zoom. As of now, you can either show the closed/open tickets of a customer OR a company, but not both.
In the end i edited the /opt/otrs/Kernel/Config/Files/ZZZAuto.pm
to achieve However, i read that it is not a good style to edit the ZZZAuto.pm but whenever i tried editing an XML file, OTRS would throw an error.
Here is what i added/changed in the ZZZAuto.pm (i added the items with {'19-OpenTickets'} & {'20-ClosedTickets'})
Code: Select all
$Self->{'Frontend::CustomerUser::Item'}->{'17-ClosedTickets'} = {
'Action' => 'AgentTicketSearch',
'Attributes' => 'StateType=Closed;',
'CSS' => 'Core.Agent.CustomerUser.OpenTicket.css',
'CSSClassNoOpenTicket' => 'NoOpenTicket',
'CSSClassOpenTicket' => 'OpenTicket',
'CustomerUserLogin' => '0',
'IconNameNoOpenTicket' => 'fa-power-off',
'IconNameOpenTicket' => 'fa-power-off',
'Module' => 'Kernel::Output::HTML::CustomerUser::GenericTicket',
'Subaction' => 'Search',
'Target' => '_blank',
'Text' => 'Closed tickets (COMPANY)'
};
$Self->{'Frontend::CustomerUser::Item'}->{'20-ClosedTickets'} = {
'Action' => 'AgentTicketSearch',
'Attributes' => 'StateType=Closed;',
'CSS' => 'Core.Agent.CustomerUser.OpenTicket.css',
'CSSClassNoOpenTicket' => 'NoOpenTicket',
'CSSClassOpenTicket' => 'OpenTicket',
'CustomerUserLogin' => '1',
'IconNameNoOpenTicket' => 'fa-power-off',
'IconNameOpenTicket' => 'fa-power-off',
'Module' => 'Kernel::Output::HTML::CustomerUser::GenericTicket',
'Subaction' => 'Search',
'Target' => '_blank',
'Text' => 'Closed tickets (CUSTOMER)'
};
$Self->{'Frontend::CustomerUser::Item'}->{'15-OpenTickets'} = {
'Action' => 'AgentTicketSearch',
'Attributes' => 'StateType=Open;',
'CSS' => 'Core.Agent.CustomerUser.OpenTicket.css',
'CSSClassNoOpenTicket' => 'NoOpenTicket',
'CSSClassOpenTicket' => 'OpenTicket',
'CustomerUserLogin' => '0',
'IconNameNoOpenTicket' => 'fa-check-circle',
'IconNameOpenTicket' => 'fa-exclamation-circle',
'Module' => 'Kernel::Output::HTML::CustomerUser::GenericTicket',
'Subaction' => 'Search',
'Target' => '_blank',
'Text' => 'Open tickets (COMPANY)'
};
$Self->{'Frontend::CustomerUser::Item'}->{'19-OpenTickets'} = {
'Action' => 'AgentTicketSearch',
'Attributes' => 'StateType=Open;',
'CSS' => 'Core.Agent.CustomerUser.OpenTicket.css',
'CSSClassNoOpenTicket' => 'NoOpenTicket',
'CSSClassOpenTicket' => 'OpenTicket',
'CustomerUserLogin' => '1',
'IconNameNoOpenTicket' => 'fa-check-circle',
'IconNameOpenTicket' => 'fa-exclamation-circle',
'Module' => 'Kernel::Output::HTML::CustomerUser::GenericTicket',
'Subaction' => 'Search',
'Target' => '_blank',
'Text' => 'Open tickets (CUSTOMER)'
};
Thanks in advance guys.