[Rt-commit] r15591 - rt/3.8/trunk/lib/RT/Action
clkao at bestpractical.com
clkao at bestpractical.com
Thu Aug 28 03:08:48 EDT 2008
Author: clkao
Date: Thu Aug 28 03:08:47 2008
New Revision: 15591
Modified:
rt/3.8/trunk/lib/RT/Action/CreateTickets.pm
Log:
doc and example code fixes in Action::CreateTickets pod.
Modified: rt/3.8/trunk/lib/RT/Action/CreateTickets.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Action/CreateTickets.pm (original)
+++ rt/3.8/trunk/lib/RT/Action/CreateTickets.pm Thu Aug 28 03:08:47 2008
@@ -105,10 +105,12 @@
such sections absolutely can not span a ===Create-Ticket boundary.
After each ticket is created, it's stuffed into a hash called %Tickets
-so as to be available during the creation of other tickets during the same
-ScripAction. The hash is prepopulated with the ticket which triggered the
-ScripAction as $Tickets{'TOP'}; you can also access that ticket using the
-shorthand TOP.
+so as to be available during the creation of other tickets during the
+same ScripAction, using the key 'create-identifier', where
+C<identifier> is the id you put after C<===Create-Ticket:>. The hash
+is prepopulated with the ticket which triggered the ScripAction as
+$Tickets{'TOP'}; you can also access that ticket using the shorthand
+TOP.
A simple example:
@@ -163,8 +165,9 @@
ENDOFCONTENT
===Create-Ticket: two
Subject: Manager approval
+ Type: approval
Depended-On-By: TOP
- Refers-On: {$Tickets{"approval"}->Id}
+ Refers-To: {$Tickets{"create-approval"}->Id}
Queue: ___Approvals
Content-Type: text/plain
Content:
More information about the Rt-commit
mailing list