[rt-users] Need help about scrip condition

Eric MAISONOBE eric at maiso.net
Mon Jan 20 03:33:17 EST 2014


Many thanks : this exactly what i was looking for !
 Le 17 janv. 2014 14:34, "Emmanuel Lacour" <elacour at easter-eggs.com> a
écrit :

> On Thu, Jan 16, 2014 at 06:57:12PM +0100, Eric MAISONOBE wrote:
> >
> >    So i have 2 questions :
> >    -> what's the way to check if the comment creator is "Enoch root",
> and in
> >    this case (and only in this case) to notify the comment to
> >    'OtherRecipients',
>
> Something like this (untested):
>
> my $RootUser = RT::User->new( $self->CurrentUser );
> $RootUser->Load( 'root' );
> if ($Transaction->CreatorObj->id == $RootUser->id ) {
>     ...
>
>
> >    -> moreover, where can i found the code corresponding to default
> >    conditions and actions pre-existing in RT web interface ?
>
> Conditions: lib/RT/Condition/*.pm
> Actions: lib/RT/Action/*.pm
>
>
> --
> Easter-eggs                              Spécialiste GNU/Linux
> 44-46 rue de l'Ouest  -  75014 Paris  -  France -  Métro Gaité
> Phone: +33 (0) 1 43 35 00 37    -   Fax: +33 (0) 1 43 35 00 76
> mailto:elacour at easter-eggs.com  -   http://www.easter-eggs.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20140120/26a42c18/attachment.htm>


More information about the rt-users mailing list