[rt-users] Problem with Approval Creation
Torsten Brumm
torsten.brumm at googlemail.com
Fri Oct 15 07:16:06 EDT 2010
Dear List,
i'm trying to create an approval Ticket (RT 3.6.5) with the following
Template:
===Create-Ticket: INVEST
Subject: Manager Approval for Investment: {$Tickets{"TOP"}->Id} -
{$Tickets{"TOP"}->Subject}
Depended-On-By: TOP
Refers-To: {$Tickets{'TOP'}->Id()}
Queue: ___APPROVAL
Type: approval
Requestor: {$Tickets{'TOP'}->RequestorAddresses()}
AdminCC: {$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}
Content-Type: text/plain
Content: Your approval is requested for the ticket {$Tickets{"TOP"}->Id}:
{$Tickets{"TOP"}->Subject}
{$Tickets{"TOP"}->Transactions->First->Content()}
ENDOFCONTENT
Script for this:
OnOpen
CreateTickets
Template: Approval
So, when a ticket is going to open, create an approval ticket
This is working fine so far, but this Part:
AdminCC: {$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}
wont work, the adminCC Field is empty.
Before the ticket is going to open, we add a group as admincc to the ticket,
and this group members should later on also the approvers.
Below the logfile output:
[Fri Oct 15 10:26:58 2010] [debug]: Workflow: processing create-INVEST of
RT::Ticket=HASH(0xa6d3980) (/opt/rt3/lib/RT/Action/CreateTickets.pm:588)
[Fri Oct 15 10:26:58 2010] [debug]: Workflow: evaluating
Subject: Manager Approval for Investment: {$Tickets{"TOP"}->Id} -
{$Tickets{"TOP"}->Subject}
Depended-On-By: TOP
Refers-To: {$Tickets{'TOP'}->Id()}
Queue: ___APPROVAL
Type: approval
Requestor: {$Tickets{'TOP'}->RequestorAddresses()}
AdminCC: {$Tickets{'TOP'}->AdminCc->MemberEmailAddresses()}
Content-Type: text/plain
Content: Your approval is requested for the ticket {$Tickets{"TOP"}->Id}:
{$Tickets{"TOP"}->Subject}
{$Tickets{"TOP"}->Transactions->First->Content()}
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:881)
[Fri Oct 15 10:26:58 2010] [debug]: Workflow: yielding
Subject: Manager Approval for Investment: 44425100 - TEST 9 bitten
ignorieren
Depended-On-By: TOP
Refers-To: 44425100
Queue: ___APPROVAL
Type: approval
Requestor: someuser at company.com
AdminCC:
Content-Type: text/plain
Content: Your approval is requested for the ticket 44425100: TEST 9 bitten
ignorieren
Requested_by_Region: HQ - Head Quarter
Requested_by_Name: Some Name
Value: 123
Remarks:
TEST
ENDOFCONTENT (/opt/rt3/lib/RT/Action/CreateTickets.pm:897)
Any ideas? I'm confused at the moment :-(
Thanks
Torsten
--
MFG
Torsten Brumm
http://www.brumm.me
http://www.elektrofeld.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101015/f73b7a39/attachment.htm>
More information about the rt-users
mailing list