[Rt-commit] r17885 - in rt/3.999/branches/merge_to_3.8.2: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Jan 22 04:24:17 EST 2009


Author: sunnavy
Date: Thu Jan 22 04:24:17 2009
New Revision: 17885

Modified:
   rt/3.999/branches/merge_to_3.8.2/   (props changed)
   rt/3.999/branches/merge_to_3.8.2/lib/RT/ScripAction/CreateTickets.pm

Log:
 r18975 at sunnavys-mb:  sunnavy | 2009-01-22 16:55:48 +0800
 merged lib/RT/ScripAction/CreateTickets.pm


Modified: rt/3.999/branches/merge_to_3.8.2/lib/RT/ScripAction/CreateTickets.pm
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/lib/RT/ScripAction/CreateTickets.pm	(original)
+++ rt/3.999/branches/merge_to_3.8.2/lib/RT/ScripAction/CreateTickets.pm	Thu Jan 22 04:24:17 2009
@@ -61,7 +61,7 @@
 =head1 SYNOPSIS
 
  ===Create-Ticket codereview
- Subject: Code review for {$Tickets{'TOP'}->subject}
+ Subject: Code review for {$tickets{'TOP'}->subject}
  Depended-On-By: TOP
  Content: Someone has Created a ticket. you should review and approve it,
  so they can finish their work
@@ -101,16 +101,18 @@
 of perl inside the Text::Template using {} delimiters, but that 
 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.
+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, 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:
 
  ===Create-Ticket: codereview
- Subject: Code review for {$Tickets{'TOP'}->subject}
+ Subject: Code review for {$tickets{'TOP'}->subject}
  Depended-On-By: TOP
  Content: Someone has Created a ticket. you should review and approve it,
  so they can finish their work
@@ -151,17 +153,18 @@
  AdminCc: {join ("\nAdminCc: ", at admins) }
  Depended-On-By: TOP
  Refers-To: TOP
- Subject: Approval for ticket: {$Tickets{"TOP"}->id} - {$Tickets{"TOP"}->subject}
+ Subject: Approval for ticket: {$tickets{"TOP"}->id} - {$tickets{"TOP"}->subject}
  Due: {time + 86400}
  Content-Type: text/plain
- Content: Your approval is requested for the ticket {$Tickets{"TOP"}->id}: {$Tickets{"TOP"}->subject}
+ Content: Your approval is requested for the ticket {$tickets{"TOP"}->id}: {$tickets{"TOP"}->subject}
  Blah
  Blah
  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