[Rt-devel] Bug? Imbalance in linking history

Todd Chapman todd at chaka.net
Fri Nov 4 13:30:55 EST 2005


On Fri, Nov 04, 2005 at 10:48:59AM -0800, Joby Walker wrote:
> Todd Chapman wrote:
> > My reply to this seems to be lost so at the risk of repeating myself:
> > 
> > The thing that concerns me about two scrips is, what if you
> > want to send an e-mail on AddLink, but you only want to do
> > it once. How do you make the two scrips aware of each other
> > so that only one performs the action? If there is a simple
> > solution to this problem, then 2 scrips is fine wiht me.
> > Otherwise I think it's better to have one scrip run and
> > the user and figure out what object was at the other end.
> > 
> > -Todd
> 
> The problem is that you might want to send two emails.  If the Sales
> queue links one of their tickets (say #2) to a ticket (#4) as DependsOn
> in the Support queue.  There are two descrete actions that should happen:
> 
> 1) the Sales ticket (#2) might notify a set of people that the ticket is
> blocked.
> 
> 2) the Support ticket (#4) might notify a set of people that it is
> blocking another ticket.

And you could do that from one scrip.

If we could imagine what the most common use cases would be I 
would optize for that. If we are not sure in out ability to
guess the most common case then 2 scrips is probably the
way to go.

> 
> 
> Joby Walker
> ITI SSG, University of Washington


More information about the Rt-devel mailing list