For fun, I tried to create a script in one of the queues to
automatically add an e-mail address to the ticket cc list. Not
surprisingly, it failed. I'm sure it's a syntax issue but after
looking all over Wiki there really aren't any examples that are on
point. It probably wouldn't take much of a nudge to get me pointed
in the right direction.
Description: Add Watchers
Condition: On create
Action: User defined
Custom action preparation code:
$Ticket->AddWatcher (Email => '[EMAIL PROTECTED]' );
Template: Global template blank
Here's the error I got:
Mar 21 08:03:31 rt RT: Scrip 15 Prepare failed: Global symbol
"$Ticket" requires
explicit package name at (eval 1622) line
1. (/opt/rt3/lib/RT/Action/UserDefin
ed.pm:43)
Frank Saxton wrote:
Hello folks!
RT 3.0.1 on Redhat 7.3, an oldie but a goodie to be sure :)
Wondering if I am doing something wrong or if this feature is just
broken in this version. Things are working mostly really well at
the present time which makes upgrading anything an unattractive option.
I've set a particular queue to add several e-mail addresses as
watchers and that seems to have taken OK.
Configuration->Queues->Queue->Watchers does list the newly added
e-mail addresses correctly.
However, when a new ticket is created in the queue, the watchers
are not added to the cc list.
I gave "everyone" watch rights and that didn't seem to help either.
What am I doing wrong please?
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com