[Rt-devel] duplicating a scrip in code

Todd Chapman todd at chaka.net
Thu Jan 5 11:09:23 EST 2006


Attached.

On Thu, Jan 05, 2006 at 10:33:53AM -0500, Jesse Vincent wrote:
> 
> > I understand want you want but it's just not the right way
> > and will probably not work. Adding links during ticket creation
> > is not documented, but it's not hard. Just pass an option
> > with the link type and the id of the ticket you are linking
> > to. For example:
> > 
> 
> I'd happily take a doc patch from someone to make it official ;)
-------------- next part --------------
==== Patch <LinkDoc> level 1
Source: 6fc35107-3207-0410-b21e-9a2d7f624572:/local/bp/rt/features/3.4_link_doc_fix:5111
Target: e417ac7c-1bcc-0310-8ffa-8f5827389a85:/rt/branches/3.4-RELEASE:4307
        (svn://svn.bestpractical.com)
Log:
 r5110 at slah001:  root | 2006-01-05 12:06:38 -0500
 Improving Ticket::Create documentation.
 r5111 at slah001:  root | 2006-01-05 12:08:47 -0500
 Ticket::Create link documentation added.

=== lib/RT/Ticket_Overlay.pm
==================================================================
--- lib/RT/Ticket_Overlay.pm	(revision 4307)
+++ lib/RT/Ticket_Overlay.pm	(patch LinkDoc level 1)
@@ -327,7 +327,13 @@
   MIMEObj -- a MIME::Entity object with the content of the initial ticket request.
   CustomField-<n> -- a scalar or array of values for the customfield with the id <n>
 
+Ticket links can be set up during create by passing the link type as a hask key and the ticket id to be linked to as a value (or a URI when linking to other objects). Multiple links of the same type can be created by passing an array ref. For example:
 
+  Parent => 45,
+  DependsOn => [ 15, 22 ],
+  RefersTo => 'http://www.bestpractical.com',
+
+
 Returns: TICKETID, Transaction Object, Error Message
 
 

==== BEGIN SVK PATCH BLOCK ====
Version: svk 1.06 (linux)

eJyNVO1u2zYUzZ/1h4C9w0WnIg0Q2yIlWbKCGg5aB+uWLZ3jtD+GwqAoOlYjiwJFJTGiAEWA7Tn2
RHmmXdLOxz6C1BAsUffynHvPFc+Bmu6NSDsceq1LvPb4489J8oFpvnhFgtbttyLLtVRu2BbiXBSu
3xby1A3aki0FRmvZKG4eNFOnQpuHnJ8JPRwShI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