Script creation of mutiple child tickets

I’m still working on a workflow process and I gotten it to create single
child tickets properly but as soon as I try to create multiples in one
template it fails. RT 3.6 on RHEL 4 fastcgi

Thanks for any pointers.

[Wed Aug 9 21:48:16 2006] [debug]: Converting ‘ISO-8859-1’ to ‘utf-8’
for text/plain - Employee Termination Notice (/opt/rt3/lib/RT/I18N.pm:226)
[Wed Aug 9 21:48:16 2006] [debug]: About to think about scrips for
transaction #11147 (/opt/rt3/lib/RT/Transaction_Overlay.pm:160)
[Wed Aug 9 21:48:16 2006] [debug]: About to think about scrips for
transaction #11148 (/opt/rt3/lib/RT/Transaction_Overlay.pm:160)
[Wed Aug 9 21:48:16 2006] [debug]: About to think about scrips for
transaction #11149 (/opt/rt3/lib/RT/Transaction_Overlay.pm:160)
[Wed Aug 9 21:48:16 2006] [debug]: About to think about scrips for
transaction #11150 (/opt/rt3/lib/RT/Transaction_Overlay.pm:160)
[Wed Aug 9 21:48:16 2006] [debug]: About to think about scrips for
transaction #11151 (/opt/rt3/lib/RT/Transaction_Overlay.pm:160)
[Wed Aug 9 21:48:16 2006] [debug]: About to prepare scrips for
transaction #11151 (/opt/rt3/lib/RT/Transaction_Overlay.pm:164)
[Wed Aug 9 21:48:16 2006] [debug]: Found 4 scrips
(/opt/rt3/lib/RT/Scrips_Overlay.pm:364)
[Wed Aug 9 21:48:17 2006] [debug]: Detected Termination Notice with
subject = Employee Termination Notice
(/opt/rt3/local/lib/RT/Condition/OnEmployeeTermination.pm:17)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ===
(/opt/rt3/lib/RT/Action/CreateTickets.pm:811)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ===Create-Ticket: Remove
Groupwise User (/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: **** Create ticket: create-Remove
Groupwise User (/opt/rt3/lib/RT/Action/CreateTickets.pm:829)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Subject: Disable Novell
Account (/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Parents: TOP
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Queue: Support
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Owner: jmccoy
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Requestor: nobody
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Content-Type: text/plain
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Content:
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: The user listed in the parent
ticket { $Tickets{‘TOP’}->Id() } needs to be disabled in eDir and
Groupwise. Please remember to resolve this ticket when it is done.
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ENDOFCONTENT
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line:
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ===Create-Ticket: Remove
Groupwise User (/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: **** Create ticket: create-Remove
Groupwise User (/opt/rt3/lib/RT/Action/CreateTickets.pm:829)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Subject: Disable UNIX
Account (/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Parents: TOP
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Queue: Support
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Owner: jmccoy
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Requestor: nobody
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Content-Type: text/plain
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Content:
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: The user listed in the parent
ticket { $Tickets{‘TOP’}->Id() } needs to be disabled on NS1 and
datatle. Remember to run exports_accounts.pl on NS1. Best to use passwd
-l username. Please remember to resolve this ticket when it is done.
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ENDOFCONTENT
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line:
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ===Create-Ticket: Remove
Groupwise User (/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: **** Create ticket: create-Remove
Groupwise User (/opt/rt3/lib/RT/Action/CreateTickets.pm:829)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Subject: Disable Telecom
Account (/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Parents: TOP
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Queue: Support
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Owner: jmccoy
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Requestor: nobody
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Content-Type: text/plain
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: Content:
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: The user listed in the parent
ticket { $Tickets{‘TOP’}->Id() } needs to be disabled in the PBX. Please
remember to resolve this ticket when it is done.
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: Line: ENDOFCONTENT
(/opt/rt3/lib/RT/Action/CreateTickets.pm:814)
[Wed Aug 9 21:48:17 2006] [debug]: About to commit scrips for
transaction #11151 (/opt/rt3/lib/RT/Transaction_Overlay.pm:173)
[Wed Aug 9 21:48:17 2006] [info]:
rt-3.6.0-28759-1155160096-253.10025-3-0@ggu.edu #10025/11151 - Scrip
3 (/opt/rt3/lib/RT/Action/SendEmail.pm:237)
[Wed Aug 9 21:48:17 2006] [debug]: About to think about scrips for
transaction #11152 (/opt/rt3/lib/RT/Transaction_Overlay.pm:160)
[Wed Aug 9 21:48:17 2006] [info]:
rt-3.6.0-28759-1155160096-253.10025-3-0@ggu.edu sent To:
jmccoy@ggu.edu (/opt/rt3/lib/RT/Action/SendEmail.pm:312)
[Wed Aug 9 21:48:17 2006] [info]:
rt-3.6.0-28759-1155160097-1982.10025-4-0@ggu.edu #10025/11151 - Scrip
4 (/opt/rt3/lib/RT/Action/SendEmail.pm:237)
[Wed Aug 9 21:48:17 2006] [info]:
rt-3.6.0-28759-1155160097-1982.10025-4-0@ggu.edu No recipients found.
Not sending. (/opt/rt3/lib/RT/Action/SendEmail.pm:249)
[Wed Aug 9 21:48:17 2006] [debug]: In CreateByTemplate
(/opt/rt3/lib/RT/Action/CreateTickets.pm:571)
[Wed Aug 9 21:48:17 2006] [debug]:
(/opt/rt3/lib/RT/Action/CreateTickets.pm:579)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: processing create-Remove
Groupwise User of RT::Ticket=HASH(0xaeaca58)
(/opt/rt3/lib/RT/Action/CreateTickets.pm:587)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: evaluating
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in eDir and Groupwise. Please remember to resolve this
ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled on NS1 and datatle. Remember to run exports_accounts.pl on
NS1. Best to use passwd -l username. Please remember to resolve this
ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in the PBX. Please remember to resolve this ticket when it
is done.
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:880)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: yielding
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled in eDir
and Groupwise. Please remember to resolve this ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled on NS1
and datatle. Remember to run exports_accounts.pl on NS1. Best to use
passwd -l username. Please remember to resolve this ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled in the
PBX. Please remember to resolve this ticket when it is done.
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:896)
[Wed Aug 9 21:48:17 2006] [debug]: ARRAY(0xae8e668) not a recognised
queue object. (/opt/rt3/lib/RT/Ticket_Overlay.pm:391)
[Wed Aug 9 21:48:17 2006] [debug]: RT::Ticket=HASH(0xaea8c04) No queue
given for ticket creation. (/opt/rt3/lib/RT/Ticket_Overlay.pm:396)
[Wed Aug 9 21:48:17 2006] [error]: Couldn’t create related ticket
create-Remove Groupwise User for 10025 Could not create ticket. Queue
not set (/opt/rt3/lib/RT/Action/CreateTickets.pm:618)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: processing create-Remove
Groupwise User of RT::Ticket=HASH(0xaeaca58)
(/opt/rt3/lib/RT/Action/CreateTickets.pm:587)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: evaluating
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in eDir and Groupwise. Please remember to resolve this
ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled on NS1 and datatle. Remember to run exports_accounts.pl on
NS1. Best to use passwd -l username. Please remember to resolve this
ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in the PBX. Please remember to resolve this ticket when it
is done.
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:880)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: yielding
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled in eDir
and Groupwise. Please remember to resolve this ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled on NS1
and datatle. Remember to run exports_accounts.pl on NS1. Best to use
passwd -l username. Please remember to resolve this ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled in the
PBX. Please remember to resolve this ticket when it is done.
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:896)
[Wed Aug 9 21:48:17 2006] [debug]: ARRAY(0xada31d0) not a recognised
queue object. (/opt/rt3/lib/RT/Ticket_Overlay.pm:391)
[Wed Aug 9 21:48:17 2006] [debug]: RT::Ticket=HASH(0xaea581c) No queue
given for ticket creation. (/opt/rt3/lib/RT/Ticket_Overlay.pm:396)
[Wed Aug 9 21:48:17 2006] [error]: Couldn’t create related ticket
create-Remove Groupwise User for 10025 Could not create ticket. Queue
not set (/opt/rt3/lib/RT/Action/CreateTickets.pm:618)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: processing create-Remove
Groupwise User of RT::Ticket=HASH(0xaeaca58)
(/opt/rt3/lib/RT/Action/CreateTickets.pm:587)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: evaluating
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in eDir and Groupwise. Please remember to resolve this
ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled on NS1 and datatle. Remember to run exports_accounts.pl on
NS1. Best to use passwd -l username. Please remember to resolve this
ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in the PBX. Please remember to resolve this ticket when it
is done.
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:880)
[Wed Aug 9 21:48:17 2006] [debug]: Workflow: yielding
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled in eDir
and Groupwise. Please remember to resolve this ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled on NS1
and datatle. Remember to run exports_accounts.pl on NS1. Best to use
passwd -l username. Please remember to resolve this ticket when it is done.
ENDOFCONTENT

Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket 10025 needs to be disabled in the
PBX. Please remember to resolve this ticket when it is done.
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:896)
[Wed Aug 9 21:48:17 2006] [debug]: ARRAY(0xaecbe48) not a recognised
queue object. (/opt/rt3/lib/RT/Ticket_Overlay.pm:391)
[Wed Aug 9 21:48:17 2006] [debug]: RT::Ticket=HASH(0xaea7e34) No queue
given for ticket creation. (/opt/rt3/lib/RT/Ticket_Overlay.pm:396)
[Wed Aug 9 21:48:17 2006] [error]: Couldn’t create related ticket
create-Remove Groupwise User for 10025 Could not create ticket. Queue
not set (/opt/rt3/lib/RT/Action/CreateTickets.pm:618)
[Wed Aug 9 21:48:17 2006] [debug]: Handling links for
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1415)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Handling links for
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1415)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Handling links for
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1415)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Building Parents link for TOP: 10025
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1426)
[Wed Aug 9 21:48:17 2006] [crit]: HasRight called with no valid object
(/opt/rt3/lib/RT/Principal_Overlay.pm:321)
[Wed Aug 9 21:48:17 2006] [warning]: AddLink thru 10025 failed:
Permission Denied (/opt/rt3/lib/RT/Action/CreateTickets.pm:1450)
[Wed Aug 9 21:48:17 2006] [debug]: Handling postponed actions for
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1462)
[Wed Aug 9 21:48:17 2006] [debug]: Handling postponed actions for
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1462)
[Wed Aug 9 21:48:17 2006] [debug]: Handling postponed actions for
(/opt/rt3/lib/RT/Action/CreateTickets.pm:1462)
[Wed Aug 9 21:48:17 2006] [info]: Ticket 10025 created in queue
‘Infrastructure’ by jmccoy (/opt/rt3/lib/RT/Ticket_Overlay.pm:745)

John McCoy, Jr
Sr. Systems and Network Administrator
Enterprise Technology Services
Golden Gate University
415-442-6560

Ok slightly moronic error on my part;
I had the same ===Create-Ticket: header for each ticket.
A few folks asked me just how I was doing this so her is the whole deal:

Script: Employee Term Workflow
Description: Create tickets for each task that needs doing
Condition: Employee Termination Notice
Action: Create Tickets
Template: Term Tickets
Stage: TransactionCreate

Condition I created by hand and added via script from Essentials book
:
[root@tickets-dev ~]# cat
/opt/rt3/local/lib/RT/Condition/OnEmployeeTermination.pm

Test to see if incoming tickets have key words in the subject

By jmccoy on and around July 2006

package RT::Condition::OnEmployeeTermination;

Bring in setting from RT::Condition::Generic

require RT::Condition::Generic;
use strict;
use vars qw/@ISA/;
@ISA = qw(RT::Condition::Generic);

sub IsApplicable {
my $self = shift;
return 0 unless $self->TicketObj->Subject =~ /Employee Term Notice/;
$RT::Logger->debug('Detected TermNotice with subject = '.
$self->TicketObj->Subject);
return 1;
}

eval “require RT::Condition::OnEmployeeTermination_Vendor”;
die $@ if ($@ && $@ !~ qr{^Can’t locate
RT/Condition/OnEmployeeTermination_Vendor.pm});
eval “require RT::Condition::OnEmployeeTermination_Local”;
die $@ if ($@ && $@ !~ qr{^Can’t locate
RT/Condition/OnEmployeeTermination_Local.pm});

1;

Template: CreateMultiple Tickets
===Create-Ticket: Remove Groupwise User
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in eDir and Groupwise. Please remember to resolve this
ticket when it is done.
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
{$Transaction->Content()}
ENDOFCONTENT

===Create-Ticket: Remove UNIX User
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled on NS1 and datatle. Remember to run exports_accounts.pl on
NS1. Best to use passwd -l username. Please remember to resolve this
ticket when it is done.
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
{$Transaction->Content()}
ENDOFCONTENT

===Create-Ticket: Remove TELECOM User
Parents: TOP
Queue: Support
Owner: jmccoy
Requestor: nobody
Content-Type: text/plain
Content:
The user listed in the parent ticket { $Tickets{‘TOP’}->Id() } needs to
be disabled in the PBX. Please remember to resolve this ticket when it
is done.
{$RT::WebURL}Ticket/Display.html?id={$Ticket->id}
{$Transaction->Content()}
ENDOFCONTENT

The idea short term is HR fills out a web page that sends this email:

Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

EMAIL: jdoe@ggu.edu
DEPT: ETS
NAME: Jane Doe
DATE: 07132006

Long term is a database event will send this email.

John McCoy wrote:

Ok my bad this didn’t work:
{$Transaction->Content()}

Tried:
{$Tickets{‘TOP’}->Content()}

Ideas?

John McCoy, Jr wrote: