falcone at bestpractical
Jul 20, 2012, 8:04 AM
Post #3 of 3
On Tue, Jul 17, 2012 at 08:29:42PM +0300, Ruslan Zakirov wrote:
Re: OnCorrespondNotify Owner and AdminCCs
[In reply to]
> On Fri, Jul 13, 2012 at 8:24 PM, Kailas Narendran <kailas [at] kiinde> wrote:
> > We're using RT and have a situation where, on correspondence, we need to
> > notify both Owners and AdminCCs. If someone is on both lists, then we would
> > want them to be only notified once.
> > I found an example at http://requesttracker.wikia.com/wiki/ScripAction, but
> > it sounded (from conversations on IRC) that it should be possible to do this
> > w/out mucking with the database schema (as well as not assuming that the sql
> > in the example would work in the latest RT version).
> > I'm new to customizing RT and am not sure where to start. has anyone run
> > into this situation before and help me with how to accomplish this?
> Start from setting up clone of production to play with without being
> afraid to break
> Take a look at http://requesttracker.wikia.com/wiki/InitialData, it's
> better approach
> to insert a scrip action.
To expand on Ruslan's answer, this is a matter of stealing from the
core initialdata's @ScripActions list and creating your own small
myscripactions file with one entry in it. You'll want to fix the
Name, Description and Argument (the Argument is AdminCc,Owner not just
Owner or AdminCc). Running this with rt-setup-database --action
insert --datafile myscripactions will get you a new Scrip Action in
the UI called "Notify Owners and AdminCcs".
I believe this to be a generally useful scrip action to have, so I
suspect I'll add it to my 4.2/new-scripactions branch where I've been
collecting some things I write a lot.