RT-Attach-Message: yes


{
    my $date = $Transaction->CreatedObj;
    $date->OriginalUser( $Transaction->OriginalUser );
    $date->AsString;
}: {loc('Request [_1] was acted upon.', $Ticket->id)}
{join("\n",
loc('       Queue: [_1]', $Ticket->QueueObj->Name),
loc('     Subject: [_1]', $Ticket->Subject || loc("(No subject given)")),
loc('       Owner: [_1]', $Ticket->OwnerObj->Name),
loc('  Requestors: [_1]', $Ticket->RequestorAddresses),
loc('      Status: [_1]', loc($Ticket->Status)),
loc(' Ticket <URL: [_1] >', $RT::WebURL.'Foundry/Project/Traker/Display.html?id='.$Ticket->id.'&Queue='.$Ticket->QueueObj->Id),
)}

{
    my @Batch = @{$Ticket->TransactionBatch};
    foreach my $Transaction (grep {!$_->ContentObj} @Batch) {
        $OUT .= "* " . $Transaction->Description . "\n";
    }
    foreach my $Transaction (grep {$_->ContentObj} @Batch) {
        $OUT .= "* " . $Transaction->Description . "\n\n";
        $OUT .= $Transaction->ContentObj->Content . "\n\n";
    }
}

