<html>
<body>
Hi Ben,<br><br>
I use this as a User Defined Custom Condition to detect a change in a CF
named "DMCA State":<br><br>
{ ### True on state change to ITSO_Review<br>
my $Transaction = $self->TransactionObj;<br>
return $Transaction->Type
eq 'CustomField'<br>
&&
$Transaction->Field eq '3'<br>
&& get_custom('DMCA
State') eq
'ITSO_Review'<br>
;<br><br>
sub get_custom {<br>
### Returns custom field value<br>
### get_custom($field_name)<br>
my $target_name = $_[0];<br>
my $val =
$self->TicketObj->FirstCustomFieldValue($target_name);<br>
return $val<br>
if defined $val;<br>
return undef;<br>
}<br>
}<br><br>
I wrote this quite a while ago; from what I've learned of RT since then,
I suspect I could have used the CF's name "DMCA State" instead
of it's ID "3" like this:<br>
&& $Transaction->Field eq "DMCA
State"<br><br>
Of course, what you are detecting is going to be different, but you
should be able to use this as a guide.<br><br>
Disclaimer: I know this code could be reduced to 1 or 2 lines, but my
coding philosophy is that readability trumps terseness.<br><br>
Regards,<br>
Gene<br><br>
At 01:08 AM 4/18/2008, Ben Robson wrote:<br>
<blockquote type=cite class=cite cite=""><font face="calibri" size=2>
Greetings,<br>
<br>
I am not sure where to start with this one.... I’d like to have a check
box custom field on tickets so that when the box is ticked an email is
sent to a fixed email address notifying them that the box has been
ticked.<br>
<br>
Effectively: OnUpdate -> Check if CustomField checkbox has been
selected(ticked) -> If yes, send defined_template to
fixed_email_address.<br>
<br>
I have seen a few people doing something similar using the OnResolve
condition, but we need to be able to flag a job before resolution, so
need to use a custom field to set when the fixed_email recipient should
be notified.<br>
<br>
Does anyone have any good insight as to how to make this happen?<br>
<br>
Thanks heaps for your assistance with this.<br>
<br>
Best regards,<br>
BenR</font></blockquote>
<x-sigsep><p></x-sigsep>
-- <br>
Gene LeDuc, GSEC<br>
Security Analyst<br>
San Diego State University</body>
</html>