Hello,
After upgrading from 3.1.9 to 3.3.8, our custom event does not work any more.
This event allows a direct assignment to a specific queue at creation time when a dynamic field is set to a specific value.
The code (in attachment) checks the dynamic_field value and set the queue name.
The error returned after the upgrade is that it did not get the value of TicketID and dynamic fields:
[Thu Sep 18 16:47:27 2014][Info][Kernel::System::Ticket::TicketCreate] New Ticket [2014091811000109/tes
t atrium] created (TicketID=1452,Queue=ServiceDesk,Priority=3 normal,State=new)
[Thu Sep 18 16:47:27 2014][Info][Custom::Kernel::System::Ticket::Event::AssignNonCCIN2P3CNRSUnit::Run]
Starting Run() CUSTOM method of AssignNonCCIN2P3CNRSUnit module
[Thu Sep 18 16:47:27 2014][Info][Custom::Kernel::System::Ticket::Event::AssignNonCCIN2P3CNRSUnit::Run]
Processing ticket 2014091811000109/1452
[Thu Sep 18 16:47:27 2014][Info][Custom::Kernel::System::Ticket::Event::AssignNonCCIN2P3CNRSUnit::Run]
CNRS Unit
[Thu Sep 18 16:47:27 2014][Error][Kernel::System::Ticket::TicketGet][1058] Need TicketID!
[Thu Sep 18 16:47:27 2014][Info][Custom::Kernel::System::Ticket::Event::AssignNonCCIN2P3CNRSUnit::Run]
For ticket / , values: CNRS Unit = , Queue =
[Thu Sep 18 16:47:27 2014][Info][Custom::Kernel::System::Ticket::Event::AssignNonCCIN2P3CNRSUnit::Run]
Ending Run() CUSTOM method of AssignNonCCIN2P3CNRSUnit module
Any idea ?
Thanks.
David
Custom event does not work after upgrade
Moderator: crythias
-
- Znuny newbie
- Posts: 11
- Joined: 06 Aug 2014, 16:44
- Znuny Version: 3.3.8
- Location: Lyon, France
Custom event does not work after upgrade
You do not have the required permissions to view the files attached to this post.
-
- 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: Custom event does not work after upgrade
Code: Select all
my %Ticket = $Self->{TicketObject}->TicketGet(%Param);
Code: Select all
my %Ticket = $Self->{TicketObject}->TicketGet(%Param, TicketID => $Param{Data}->{TicketID});
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
-
- Znuny newbie
- Posts: 11
- Joined: 06 Aug 2014, 16:44
- Znuny Version: 3.3.8
- Location: Lyon, France
Re: Custom event does not work after upgrade
Thanks a lot.
It works with
as I need the dynamic fields.
What is strange is that the same piece of code
in a GenericAgent works perfectly.
David
It works with
Code: Select all
my %Ticket = $Self->{TicketObject}->TicketGet(%Param, TicketID => $Param{Data}->{TicketID}, DynamicFields => 1);
What is strange is that the same piece of code
Code: Select all
$Param{"DynamicFields"} = 1;
my %Ticket = $Self->{TicketObject}->TicketGet(%Param);
David
-
- 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: Custom event does not work after upgrade
A GenericAgent is not an EventModule! The methods get different parameters.
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