[rt-users] Re: [Rt-devel] UserDefined scrip action

Andy Harrison aharrison at gmail.com
Thu Dec 9 14:52:24 EST 2004


> > But how would you determine the group to use?  The requestor's group?
> > The current user?  The current queue (i.e. who has rights to it)?
> 
> Anyway.
> As I've written in my case it was I CustomField set on Tickets
> which Value identifie the Group name -> Emails... This is not a core of
> solved problem with my scrip codes.
> 
> Jan Okrouhlý

In that case, I see no reason you can't use Ruslan's NotifyGroup
module.  Since you probably have a finite amount of possible values in
your custom field, you could create one scrip per value.

Use a custom condition:
    # Create, or whatever condition.
    return undef unless ($self->TransactionObj->Type eq "Create");
    return undef if ($self->TicketObj->FirstCustomFieldValue('Your
Custom Field Name') =~ /Value you're searching for/i);
return 1;

Choose the appropriate action generated by Ruslan's NotifyGroup.
Template: TemplateForSomeValue1

Then in the Template, just specify your cc at the very top line of the
template (making sure to put an empty line after) and it should work.


-- 
Andy Harrison



More information about the rt-users mailing list