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,
Phil Davis
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:
http://search.cpan.org/~ruz/RT-Action-NotifyGroupOn 6/22/06, Phil Davis pmdhazy@gmail.com 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,
–
Phil Davis
The rt-users Archives
Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
We’re hiring! Come hack Perl for Best Practical: Careers — Best Practical Solutions
Best regards, Ruslan.