RT 3.4.2 - Scrip to modify requestor email on create

Hello all,

I’m new to RT and I’m trying to get a handle on custom scrips.

We have several staff members that like to submit requests from their
personal email accounts. What I’d like to do is have the scrip change
their personal email address to their official email address when the
ticket is created.

So far I’ve been successful at getting the requestor email out of
$self->TicketObj->Requestors->MemberEmailAddresses but I’ve been
ubable to successfully assign a new value to it.

If anybody could point me in the right direction I would really
appreciate the help.

Thanks,
Mike

Mike B wrote:

So far I’ve been successful at getting the requestor email out of
$self->TicketObj->Requestors->MemberEmailAddresses but I’ve been
ubable to successfully assign a new value to it.

$self->TicketObj->DeleteWatcher(Type => “Requestor”, Email => “Personal
E-mail Address”);

$self->TicketObj->AddWatcher(Type => “Requestor”, Email => “Canonical
E-mail Address”);

Rick Russell
For computer help, call xHELP (x4357 or 713-348-4357)
OpenPGP/GnuPG Public Key at ldap://certificate.rice.edu
761D 1C20 6428 580F BD98 F5E5 5C8C 56CA C7CB B669
Helpdesk Supervisor, Client Services
IT/Academic & Research Computing
Rice University
Voice: 713.348.5267 Fax: 713.348.6099