I have added a new menu option called "Handover", the idea is to open a window similar to Note, but with a different subject "Handover" and a dynamic field HO (flag) as required.
I worked on
1) Handover.xml (/opt/otrs/Kernel/Config/Files)
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="1.0" init="Application">
<ConfigItem Name="Ticket::Frontend::MenuModule###12-Handover" Required="0" Valid="1">
<Description Translatable="1">Set this ticket for Handover.</Description>
<Group>Ticket</Group>
<SubGroup>Frontend::Agent::Ticket::MenuModule</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::TicketMenuGeneric</Item>
<Item Key="Name">Handover</Item>
<Item Key="Description" Translatable="1">See Data</Item>
<Item Key="Action">AgentTicketHandover</Item>
<Item Key="Link">Action=AgentTicketHandover;TicketID=$QData{"TicketID"}</Item>
<Item Key="Target"></Item>
<Item Key="PopupType">TicketHistory</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
Code: Select all
# --
# Kernel/Modules/AgentTicketHandover.pm - to add notes to a ticket
# Copyright (C) 2001-2014 xxx, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
package Kernel::Modules::AgentTicketHandover;
use strict;
use warnings;
use base qw( Kernel::Modules::AgentTicketActionCommon );
1;
Code: Select all
# --
# AgentTicketHandover.dtl - provides HTML form for note mask
# Copyright (C) 2001-2014 xxx, http://otrs.com/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
$Include{"AgentTicketActionCommon"}
What I have to do now?ERROR: OTRS-CGI-78 Perl: 5.14.2 OS: linux Time: Fri May 22 12:31:23 2015
Message: Module Kernel::Modules::AgentTicketHandover not registered in Kernel/Config.pm!
RemoteAddress: 192.168.0.74
RequestURI: /otrs/index.pl?Action=AgentTicketHandover;TicketID=43
Traceback (1848):
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3. Line: 734
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31