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
{$Transaction->Content()}
in a template is not what I should put because it’s alway «no content».
Yes, the owner (or sometime nobody) go through the webui and make a answer and put the status to «CUSTOM_VALUE». I would like the requestor to get this answer.
In the template when you call $Transaction->Content() that is for the status change transaction I would assume. I believe you could grab the most recent “correspond” transaction from the template though.
Something like this:
{
my $txns = $Ticket->Transactions;
$txns->Limit( FIELD => 'Type', VALUE => 'Correspond' );
$txns->OrderBy( FIELD => 'Created', ORDER => 'DESC' );
$OUT = $txns->First->Content();
}
I didn’t test that syntax but it should give you an idea!