[rt-users] Don't close the ticket if a custom field is empty

Michel L'HOSTIS lhostis.m at gmail.com
Thu Feb 26 09:10:54 EST 2009


Hi everyone,

I'm new on scrips writing.
I'm looking for a way to send a notification to the owner of a ticket if he
forgot to fill a specific custom field.
I'd like to keep the ticket opened as long as there is no value to this
custom field.

I can detect if the custom field is empty or not.
--------------------------------------
if (
($self->TransactionObj->Type eq "Status" &&
    $self->TransactionObj->NewValue eq "resolved") &&
    !$self->TicketObj->FirstCustomFieldValue('My custom field') ) {
    return 1;
}
return 0;
--------------------------------------

I can easily re-open a ticket if this condition is true. I can also send a
mail to the owner with the Notify module. But I'm not able to find a simple
way to do both of this actions.

Do someone have an idea?
Thank you.
Michel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090226/4c2db806/attachment.htm>


More information about the rt-users mailing list