We would like to use the comment field of a queue to display the current support status (from a business point of view). My idea is to display the "Comment" of a given Queue into the "ticket information widget" on AgentTicketzoom. But I am facing the problem, that I am not able to get any data out of QueueObject.
Could you please check and comment the code (see below)?
Thanks
rosen
Modificaton on perl modul
Code: Select all
#...\OTRS\Kernel\Modules\AgentTicketZoom.pm
# service status
if ( 1 ) {
my %QueueGet = { $Self->{QueueObject}->QueueGet( QueueID => $Ticket{QueueID} ) };
my %data = ( Status => $QueueGet{Comment} || 'No data' );
$Self->{LayoutObject}->Block(
Name => 'Servicestatus',
Data => { %data },
);
}
Code: Select all
#...\OTRS\Custom\Kernel\Output\HTML\Standard\AgentTicketZoom.dtl
<!-- dtl:block:Servicestatus -->
<label>$Text{"Queue Support"}:</label>
<p class="Value" title="$QData{"Status"}">$QData{"Status"}</p>
<div class="Clear"></div>
<!-- dtl:block:Servicestatus -->
I already checkt the queue-ID and that there is a comment in)