Don't close the ticket if a custom field is empty

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