[rt-users] Need help about scrip condition
Emmanuel Lacour
elacour at easter-eggs.com
Fri Jan 17 08:34:32 EST 2014
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
More information about the rt-users
mailing list