[Rt-devel] Feature request: specialized mutators for creating Links

Jesse Vincent jesse at bestpractical.com
Thu Jul 20 18:49:55 EDT 2006




On Thu, Jul 20, 2006 at 06:46:16PM -0400, Drew Taylor wrote:
> I've been doing serious workflow (fun, once you've added enough
> debugging code) and have a feature request: I'd like an easy way to add
> a dependency link (DependsOn/DependedOnBy) for a ticket. AFAIK, you have
> to call
> 
>   $ticket->AddLink(Type=>"DependsOn", Target=>$approval_ticket->URI);
> 
> to add a dependency. Don't get me started on how long it took to figure
> out where URI() was located. :-) What I'd really like is something like:
> 
>   $ticket->AddDependsOnLink($other_ticket_obj);
>   $ticket->RemoveDependsOnLink($other_ticket_obj);
> 
> Yes, this is syntatic sugar but do I really need to know how to generate
> a Ticket's URI? We have lots of other wrappers, but none for simple
> linking. If there is interest, I'd be happy to put together a patch.

I'd really rather not go further on the path to "multiple accessors and
mutators per link type"

However. I'd love a patch that can cope with tickets directly, rather
than just their URIs. (I thought we could already)



> Thanks,
> Drew
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> 
> Best Practical is hiring! Come hack Perl for us: http://bestpractical.com/about/jobs.html
> 

-- 


More information about the Rt-devel mailing list