Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-09 Thread Ruslan Zakirov
There are two solutions on the wiki that either open parent or put a comment on it. One solution triggers when any dependency is resolved, another when all child tickets are resolved. It is there for ages. Ruslan from phone. 04.06.2012 21:05 пользователь Jeff Blaine jbla...@kickflop.net написал:

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-06 Thread Jeff Blaine
On 6/5/2012 6:40 PM, Kenneth Crocker wrote: Create a Template called Notify Parents on Resolve. The Template should have code similar to this (loop thru all parents and add the Emailaddress of the ticket owner to the To: line in the Template) at the top (test the code to correct my mistakes):

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-06 Thread Kenneth Crocker
Jeff, Kool. Don't forget about the action being Notify Others so your override takes effect. thanks for the tip on my guide. Kenn On Wed, Jun 6, 2012 at 9:31 AM, Jeff Blaine jbla...@kickflop.net wrote: On 6/5/2012 6:40 PM, Kenneth Crocker wrote: Create a Template called Notify Parents on

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-05 Thread Jeff Blaine
That's a good start to work with. Any leads on the proper way to go about sending mail via a template from inside a scrip would be welcome. Do I just subclass Action::SendEmail, build my message, and commit() it? I don't see a way to reference/use a template for that. Condition: On Resolve

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-05 Thread Thomas Sibley
On 06/05/2012 05:20 PM, Jeff Blaine wrote: That's a good start to work with. Any leads on the proper way to go about sending mail via a template from inside a scrip would be welcome. This is what scrips are meant to do at their core. ;) Do I just subclass Action::SendEmail, build my

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-05 Thread Jeff Blaine
On 6/5/2012 5:29 PM, Thomas Sibley wrote: Thanks Thomas Think about it this way. Make your Condition custom On Resolve + Has Parents Right. Then use a standard Notify* action and set the Template on the scrip. The goal is: On resolve of a child ticket, notify *each parent tickets'

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-05 Thread Kenneth Crocker
Jeff, OK. Here's what you do: Create a Template called Notify Parents on Resolve. The Template should have code similar to this (loop thru all parents and add the Emailaddress of the ticket owner to the To: line in the Template) at the top (test the code to correct my mistakes): To: {my

[rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-04 Thread Jeff Blaine
Does anyone know of a way to notify the parent ticket's owner on resolve?

Re: [rt-users] Scrip/template Notify parent ticket owner on resolve?

2012-06-04 Thread Kenneth Crocker
Jeff, Here's some code I developed for a 3.8 installation. It will add TimeWorked to each parent of a ticket up the ladder and sideways (if a ticket has more than one parent), regardless of how many. Use it as an example of how to determine if there is a parent and then as a condition to send a