[rt-users] Scrip

scott.dalzell scott.dalzell at aveva.com
Fri Mar 7 10:42:54 EST 2014


so you just want the scrip to run the first time a user replies to a ticket

i think it would be much easyer to have the scrip run each time a user
comments/replys to a ticket and have something allone the lines of this

*sudo code*
if(requestor == no one){
find last person to update ticket
delete requestor
add new requestor (last person to update ticket
}

this way tickets would always have a requestor once commented on


i use this snippet to switch a tickets requestor from our website to a user

$ticket->DeleteWatcher( Type=>"Requestor", Email => $EmailBad);
$ticket->AddWatcher(Type => "Requestor", Email => $fragment); 

$fragment is created by searching the contents of the ticket to find the
users email address



--
View this message in context: http://requesttracker.8502.n7.nabble.com/Scrip-tp56896p56900.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.



More information about the rt-users mailing list