[rt-users] Scrip Action to mail all members of arbitrary group?

Kenneth Crocker KFCrocker at lbl.gov
Thu Jun 22 18:00:30 EDT 2006


Phil,

    Simply add the group as a CC for the Queue where the tickets they 
are interested in reside. By adding them as a group. Then, modify the 
Global scrip for ticket creation by making AdminCc, CC, and Requestors 
as recipients. Also, male sure you have set role rights for CC to allow 
"SeeOutgoingEmail". That should do it.

Kenn
LBNL

Phil Davis wrote:
> Despite looking I cannot find an existing example of how to create a
> Scrip Action that simply emails all members in an arbitrary group.
>
> I want to just email a group of users on ticket creation just like
> AdminCc watchers get but without the other implication of being an
> AdminCc (such as emails on other events).
>
> i.e. I want something like:
>
> @recipients = GetEmailsForGroupCalled("MyGroupName");
>
> and then munge @recipients into something suitable for template
>
> Also how do you pass arbitray data to a Scrip Action - do you just set
> it up in the pre-conditions for the Scrip?
>
> Has anyone done this sort of thing before?
>
> Cheers,
>




More information about the rt-users mailing list