[rt-users] RT 3.6.5 Changes at Approval mechanism?

Ham MI-ID, Torsten Brumm torsten.brumm at Kuehne-Nagel.com
Tue Oct 23 11:40:14 EDT 2007


Hi RT Users, Bestpractical,

After successfuly migration to RT 3.6.5 (from 3.6.3) we figured out,
that the Approval function (create a approval) must be changed.

Until our migration we created approval tickets in this way (from wiki)

OnCreate -> CreateTicket -> Template: Approval

Approval Template:

===Create-Ticket: SYSTEM
Subject: Approval for ticket: {$Tickets{"TOP"}->Id} -
{$Tickets{"TOP"}->Subject}
Depended-On-By: TOP
Refers-To: {$Tickets{'TOP'}->Id()}
Queue: APPROVAL-KN.DE.CR.GENERAL 
Type: approval
Requestor: {$Tickets{'TOP'}->RequestorAddresses()}
AdminCC: {
   my $group_name  = 'APPROVAL-KN.DE.CR.GENERAL';
   my $groups      = RT::Groups->new( $RT::SystemUser );

   $groups->LimitToUserDefinedGroups();
   $groups->Limit(
         'FIELD'    => 'Name',
         'OPERATOR' => '=',
         'VALUE'    => $group_name );
   $groups->First->Id;
}
Content-Type: text/plain
Content: Your approval is requested for the ticket
{$Tickets{"TOP"}->Id}: {$Tickets{"TOP"}->Subject}

{$Transaction->Content('TOP')}
ENDOFCONTENT

--

This worked well until we migrated.

Now we get the following error (from rt3.log):

Subject: Approval for system change: {$Tickets{"TOP"}->Id} -
{$Tickets{"TOP"}->Subject}
Depended-On-By: TOP
Refers-To: {$Tickets{'TOP'}->Id()}
Queue: APPROVAL-KN.DE.CR.SYSTEM
Type: approval
Requestor: {$Tickets{'TOP'}->RequestorAddresses()}
AdminCC: {
   my $group_name  = 'APPROVAL-KN.DE.CR.SYSTEM';
   my $groups      = RT::Groups->new( $RT::SystemUser );

   $groups->LimitToUserDefinedGroups();
   $groups->Limit(
         'FIELD'    => 'Name',
         'OPERATOR' => '=',
         'VALUE'    => $group_name );
   $groups->First->Id;
}
Content-Type: text/plain
Content: Your approval is requested for the ticket
{$Tickets{"TOP"}->Id}: {$Tickets{"TOP"}->Subject}

{$Transaction->Content('TOP')}
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:881)
[Tue Oct 23 15:32:57 2007] [debug]: Workflow: yielding
Subject: Approval for system change: 833392 - TEST
Depended-On-By: TOP
Refers-To: 833392
Queue: APPROVAL-KN.DE.CR.SYSTEM
Type: approval
Requestor: user.name at kuehne-nagel.com
AdminCC: 3342710
Content-Type: text/plain
Content: Your approval is requested for the ticket 833392: TEST

Can't call method "Content" on an undefined value at template line 21.

Stack:
  [template:21]
  [/opt/rt3/lib/RT/Action/CreateTickets.pm:895]
  [/opt/rt3/lib/RT/Action/CreateTickets.pm:594]
  [/opt/rt3/lib/RT/Action/CreateTickets.pm:531]
  [/opt/rt3/lib/RT/ScripAction_Overlay.pm:242]
  [/opt/rt3/local/lib/RT/Scrip_Overlay.pm:522]
  [/opt/rt3/lib/RT/Scrips_Overlay.pm:195]
  [/opt/rt3/lib/RT/Transaction_Overlay.pm:181]
  [/opt/rt3/lib/RT/Record.pm:1461]
  [/opt/rt3/lib/RT/Ticket_Overlay.pm:746]
  [/opt/rt3/lib/RT/Interface/Web.pm:461]
  [/opt/rt3/local/html/Ticket/Display.html:71]
  [/opt/rt3/local/html/Ticket/Create.html:353]
  [/opt/rt3/share/html/autohandler:291]

ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:897)
[Tue Oct 23 15:32:57 2007] [error]: Ticket creation failed: Can't call
method "Content" on an undefined value at template line 21.

Stack:
  [template:21]
  [/opt/rt3/lib/RT/Action/CreateTickets.pm:895]
  [/opt/rt3/lib/RT/Action/CreateTickets.pm:594]
  [/opt/rt3/lib/RT/Action/CreateTickets.pm:531]
  [/opt/rt3/lib/RT/ScripAction_Overlay.pm:242]
  [/opt/rt3/local/lib/RT/Scrip_Overlay.pm:522]
  [/opt/rt3/lib/RT/Scrips_Overlay.pm:195]
  [/opt/rt3/lib/RT/Transaction_Overlay.pm:181]
  [/opt/rt3/lib/RT/Record.pm:1461]
  [/opt/rt3/lib/RT/Ticket_Overlay.pm:746]
  [/opt/rt3/lib/RT/Interface/Web.pm:461]
  [/opt/rt3/local/html/Ticket/Display.html:71]
  [/opt/rt3/local/html/Ticket/Create.html:353]
  [/opt/rt3/share/html/autohandler:291]
(/opt/rt3/lib/RT/Action/CreateTickets.pm:900)

--end

Is this a know error? Or are there some changes? This is a real NO GO
Situation to switch back.

Torsten



More information about the rt-users mailing list