
tonyjohn at hcl
Nov 18, 2009, 1:13 AM
Post #1 of 1
(498 views)
Permalink
|
|
Set CustomField values of Child Ticket using Create Child Template
|
|
Hi , I'm trying to set the custom filed values of child ticket using a Template but it fails to set the values in the Child Ticket.Please find below the Template used for Ticket creation and setting the value: Template ===Create-Ticket: Child Subject: {$Tickets{'TOP'}->Subject} - Child Queue: 20 Status: new Parents: TOP Type: ticket Refers-To: {$Tickets{'TOP'}->Id()} Content: { my $OUT; my $ticket = $Tickets{'TOP'}; my $agency=$ticket->FirstCustomFieldValue('Agency'); $OUT = "Agency: $agency\n"; $OUT; } ENDOFCONTENT Here Im trying to extract a value from the Custom Field of the Parent ticket, which im trying to assign to a Custom Field 'Agency" in the Child Tickets. But the Custom Field value remains blank. Log File [Wed Nov 18 08:44:49 2009] [debug]: In CreateByTemplate (/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/CreateTickets.pm:345) [Wed Nov 18 08:44:49 2009] [debug]: Workflow: processing create-Child of RT::Ticket=HASH(0xbcb05994) (/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/CreateTickets.pm:360) [Wed Nov 18 08:44:49 2009] [debug]: Workflow: evaluating Subject: {$Tickets{'TOP'}->Subject} - Child Queue: 20 Status: new Parents: TOP Type: ticket Refers-To: {$Tickets{'TOP'}->Id()} Content: { my $OUT; my $ticket = $Tickets{'TOP'}; my $agency=$ticket->FirstCustomFieldValue('Agency'); $OUT = "Agency: $agency\n"; $OUT; } (/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/CreateTickets.pm:653) [Wed Nov 18 08:44:49 2009] [debug]: Workflow: yielding Subject: - Child Queue: 20 Status: new Parents: TOP Type: ticket Refers-To: 1830 Content: Agency: 123123123 (/usr/lib/perl5/vendor_perl/5.10.0/RT/Action/CreateTickets.pm:669) [Wed Nov 18 08:44:49 2009] [debug]: About to think about scrips for transaction #113500 (/usr/lib/perl5/vendor_perl/5.10.0/RT/Transaction_Overlay.pm:163) Regards, Tony DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. -----------------------------------------------------------------------------------------------------------------------
|