[rt-users] OnCorrespondNotify Owner and AdminCCs

Kevin Falcone falcone at bestpractical.com
Fri Jul 20 11:04:03 EDT 2012

On Tue, Jul 17, 2012 at 08:29:42PM +0300, Ruslan Zakirov wrote:
> On Fri, Jul 13, 2012 at 8:24 PM, Kailas Narendran <kailas at kiinde.com> 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
> things.
> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120720/918415d5/attachment.sig>

More information about the rt-users mailing list