Something very simple but I didn’t find the solution.
I have a custom lifecycle and I want to send a email when the status change to something, so I use a script with user defined condition like
my $type = $txn->Type; return 0 unless $type eq "Status" || ( $type eq 'Set' && $txn->Field eq 'Status'); return 0 unless $txn->NewValue eq "CUSTOM_VALUE"; return 1;
and it’s working, but I would like to add the last answer (from the webui) of the owner so the requestor can know why we denied his request. And seem the
in a template is not what I should put because it’s alway «no content».