Hello,
I’ve disabled scrips for sending auto-notifications when a comment is
added on tickets.
BUT, i would like that comment created by rt-crontool been notified to
’OtherRecipients’.
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’,
-> moreover, where can i found the code corresponding to default conditions
and actions pre-existing in RT web interface ?
(just because it’s easier to modify working code instead of wrinting one
from blank…)
Thank you by advance for any help !
Eric
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@easter-eggs.com - http://www.easter-eggs.com
Many thanks : this exactly what i was looking for !Le 17 janv. 2014 14:34, “Emmanuel Lacour” elacour@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@easter-eggs.com - http://www.easter-eggs.com