<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Adding watchers via custom scrip</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I'm trying to add watchers to a newly created ticket via a custom scrip. The goal is to add watchers based on the content of the subject line. Admittedly I don't really know what I'm doing, but here's what I added to the "Custom action preparation code" text box (after selecting "Custom Action"):<BR>
$Self->_AddWatcher("Cc", "Roger@evare.com", 1)<BR>
<BR>
This doesn't work and the log file has the following:<BR>
RT: Scrip 14 Prepare failed: Global symbol "$Self" requires explicit package name at (eval 1961) line 1. Global symbol "@evare" requires explicit package name at (eval 1961) line 1.  (/opt/rt3/lib/RT/Action/UserDefined.pm:43)<BR>
<BR>
<BR>
I'm using RT 3.0.1<BR>
<BR>
Any suggestions?</FONT>
</P>

</BODY>
</HTML>