Help! RT::Action::NotifyGroup help!

Good morning! Let me begin by saying I am NOT a perl programmer, and I
have no idea what I’m doing.

I have made a custom condition that tries to invoke
RT::Action::NotifyGroup in the commit stage, but I can’t make it do
anything.

I’ve tried all the random stupid stuff I can think of, but haven’t hit the
right combination of guesses yet.

Right now, I have:

require RT::Action::NotifyGroup;
$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

in the Custom action cleanup code: section.

The error I get in the logfile is:

[Thu Aug 24 15:44:17 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 450) line 2.

To me, this means nothing. What is it saying is undefined? Is it
expecting more arguments? I’ve tried pretty well everything I can think
of…

Thanks in advance!!

Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe

Have you seen rtx-notify-group-admin script that comes with extension?On 8/24/06, Jason Marshall jasonm@kelman.com wrote:

Good morning! Let me begin by saying I am NOT a perl programmer, and I
have no idea what I’m doing.

I have made a custom condition that tries to invoke
RT::Action::NotifyGroup in the commit stage, but I can’t make it do
anything.

I’ve tried all the random stupid stuff I can think of, but haven’t hit the
right combination of guesses yet.

Right now, I have:

require RT::Action::NotifyGroup;
$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

in the Custom action cleanup code: section.

The error I get in the logfile is:

[Thu Aug 24 15:44:17 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 450) line 2.

To me, this means nothing. What is it saying is undefined? Is it
expecting more arguments? I’ve tried pretty well everything I can think
of…

Thanks in advance!!


Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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

Best regards, Ruslan.

Hi Ruslan, no I didn’t see that. Thanks for pointing it out to me.

I have an RT group called ‘systems’. Do I just have to add the group
’systems’, or all the members of the group individually?

Thanks.

Have you seen rtx-notify-group-admin script that comes with extension?

Good morning! Let me begin by saying I am NOT a perl programmer, and I
have no idea what I’m doing.

I have made a custom condition that tries to invoke
RT::Action::NotifyGroup in the commit stage, but I can’t make it do
anything.

I’ve tried all the random stupid stuff I can think of, but haven’t hit the
right combination of guesses yet.

Right now, I have:

require RT::Action::NotifyGroup;
$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

in the Custom action cleanup code: section.

The error I get in the logfile is:

[Thu Aug 24 15:44:17 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 450) line 2.

To me, this means nothing. What is it saying is undefined? Is it
expecting more arguments? I’ve tried pretty well everything I can think
of…

Thanks in advance!!


Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


Best regards, Ruslan.

Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe

Hi Ruslan, no I didn’t see that. Thanks for pointing it out to me.

I have an RT group called ‘systems’. Do I just have to add the group
’systems’, or all the members of the group individually?
Most probably you want to add a group instead of users, so you would
be able to add users to the group from RT UI and scrip action will
pick up new members automatically.

Thanks.

Have you seen rtx-notify-group-admin script that comes with extension?

Good morning! Let me begin by saying I am NOT a perl programmer, and I
have no idea what I’m doing.

I have made a custom condition that tries to invoke
RT::Action::NotifyGroup in the commit stage, but I can’t make it do
anything.

I’ve tried all the random stupid stuff I can think of, but haven’t hit the
right combination of guesses yet.

Right now, I have:

require RT::Action::NotifyGroup;
$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

in the Custom action cleanup code: section.

The error I get in the logfile is:

[Thu Aug 24 15:44:17 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 450) line 2.

To me, this means nothing. What is it saying is undefined? Is it
expecting more arguments? I’ve tried pretty well everything I can think
of…

Thanks in advance!!


Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


Best regards, Ruslan.


Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe

Best regards, Ruslan.

Most probably you want to add a group instead of users, so you would
be able to add users to the group from RT UI and scrip action will
pick up new members automatically.

Thanks Ruslan, that sounds very sensible.

I have run the -admin tool, and created a notifygroup entity called
"Systems" which a group named ‘Systems’.

/usr/local/rt-3.4.5/local/sbin/rt-notify-group-admin --list

Name: Systems
Module: NotifyGroup
Members:
Group => Systems

Now, I still appear to have issues with my syntax.

after the “use RT::Action::Notify;” line, I have just one more line in the
cleanup section:

$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

which gives this error:

[Thu Aug 24 17:11:55 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 858) line 2.

I once again offer the excuse of not being a perl programmer, sorry…

Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe

Now open RT WebUI and create scrip:

condition: on correspondence
action: systems <- it should be available after you’ve created it with script
template: correspondence
stage: transaction create

You don’t have to write any bit of code.On 8/24/06, Jason Marshall jasonm@kelman.com wrote:

Most probably you want to add a group instead of users, so you would
be able to add users to the group from RT UI and scrip action will
pick up new members automatically.

Thanks Ruslan, that sounds very sensible.

I have run the -admin tool, and created a notifygroup entity called
"Systems" which a group named ‘Systems’.

/usr/local/rt-3.4.5/local/sbin/rt-notify-group-admin --list

Name: Systems
Module: NotifyGroup
Members:
Group => Systems

Now, I still appear to have issues with my syntax.

after the “use RT::Action::Notify;” line, I have just one more line in the
cleanup section:

$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

which gives this error:

[Thu Aug 24 17:11:55 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 858) line 2.

I once again offer the excuse of not being a perl programmer, sorry…


Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe

Best regards, Ruslan.

Now open RT WebUI and create scrip:

condition: on correspondence
action: systems <- it should be available after you’ve created it with script
template: correspondence
stage: transaction create

You don’t have to write any bit of code.

Oh!! You’ve made it far too easy – I was not expecting that. Thanks
very much for your help, it does what it should now, thanks.

Though my custom condition looks like it needs work…

Most probably you want to add a group instead of users, so you would
be able to add users to the group from RT UI and scrip action will
pick up new members automatically.

Thanks Ruslan, that sounds very sensible.

I have run the -admin tool, and created a notifygroup entity called
"Systems" which a group named ‘Systems’.

/usr/local/rt-3.4.5/local/sbin/rt-notify-group-admin --list

Name: Systems
Module: NotifyGroup
Members:
Group => Systems

Now, I still appear to have issues with my syntax.

after the “use RT::Action::Notify;” line, I have just one more line in the
cleanup section:

$RT::Action::NotifyGroup->SetRecipients(‘Systems’);

which gives this error:

[Thu Aug 24 17:11:55 2006] [error]: Scrip 15 Commit failed: Can’t call
method “SetRecipients” on an undefined value at (eval 858) line 2.

I once again offer the excuse of not being a perl programmer, sorry…


Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe


Best regards, Ruslan.

Jason Marshall, Unix Geek, Kelman Technologies, Inc., Calgary, AB, Canada.

From a Sun Microsystems bug report (#4102680):
“Workaround: don’t pound on the mouse like a wild monkey.”

“I have great faith in fools:
Self confidence my friends call it.” -Edgar Allan Poe