Hello,
Using OTRS version 2.4.6. I have free field TicketFreeText4 defined as "severity" in OTRS. I would like the agent queue view (login - click on ticket icon - screenshot attached) to also show this and be sortable by severity. How would I do that?
Screen shot attached - I would like severity to appear after ID#.
Thanks!
Free Fields in QueView
Moderator: crythias
Free Fields in QueView
You do not have the required permissions to view the files attached to this post.
Re: Free Fields in QueView
Hello,
Any ideas? Any site or documentation to point me too?
Thanks,
Brian
Any ideas? Any site or documentation to point me too?
Thanks,
Brian
Re: Free Fields in QueView
doc.otrs.org (Developer Manual)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Free Fields in QueView
So how would you go about it? A module, a template change?
Re: Free Fields in QueView
For those of you that want to understand how to do this without the developer guide here is what you do for the small dashboard add the following two sections of code:
edit:
/opt/otrs/Kernel/Output/HTML/Standard/AgentTicketOverviewSmall.dtl
find: #<!-- dtl:block:BulkHead -->
</th>
<th width="10%">$Config{"Ticket::Hook"}<br/>
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=Ticket&OrderBy=Up" onmouseover="window.status='$JSText{"sort upward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}up-small.png" alt="$Text{"up"}"></a> /
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=Ticket&OrderBy=Down" onmouseover="window.status='$JSText{"sort downward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}down-small.png" alt="$Text{"down"}"></a>
</th>
then to insert the Column of TicketFreeText4 as severity AFTER Ticket ID you would add this next:
##--------------------------------My Customer Code-----------------------------------------------------
<th width="15%">$Text{"Severity"}<br/>
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=TicketFreeText4&OrderBy=Down" onmouseover="window.status='$JSText{"sort upward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}up-small.png" alt="$Text{"up"}"></a> /
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=TicketFreeText4&OrderBy=Up" onmouseover="window.status='$JSText{"sort downward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}down-small.png" alt="$Text{"down"}"></a>
</th>
##-----------------------------------End My Custom Code-------------------------------------------------------------------------
Then Find:
<!-- dtl:block:Bulk -->
</td>
<td>
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="PriorityID-$Data{"PriorityID"}" title="$Text{"Priority"}: $Text{"$Data{"Priority"}"}" width="1%"> </td>
<td>
<a href="$Env{"Baselink"}Action=AgentTicketZoom&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$JSText{"Zoom"}'; return true;" onmouseout="window.status='';" title="$QData{"Title"}">$Data{"TicketNumber"}</a>
</td>
</tr>
</table>
</td>
Inserting this CODE will ACTUALLY populate the data into the column you just created above.
##---------My Custom Code-------------------------------------
<td width="10%">
<div title="$QData{"TicketFreeKey4"}">$QData{"TicketFreeText4","15"}</div>
</td>
##--------------My Custom Code---------------------------------
edit:
/opt/otrs/Kernel/Output/HTML/Standard/AgentTicketOverviewSmall.dtl
find: #<!-- dtl:block:BulkHead -->
</th>
<th width="10%">$Config{"Ticket::Hook"}<br/>
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=Ticket&OrderBy=Up" onmouseover="window.status='$JSText{"sort upward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}up-small.png" alt="$Text{"up"}"></a> /
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=Ticket&OrderBy=Down" onmouseover="window.status='$JSText{"sort downward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}down-small.png" alt="$Text{"down"}"></a>
</th>
then to insert the Column of TicketFreeText4 as severity AFTER Ticket ID you would add this next:
##--------------------------------My Customer Code-----------------------------------------------------
<th width="15%">$Text{"Severity"}<br/>
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=TicketFreeText4&OrderBy=Down" onmouseover="window.status='$JSText{"sort upward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}up-small.png" alt="$Text{"up"}"></a> /
<a name="OverviewControl" href="$Env{"Baselink"}Action=$Env{"Action"}&$Data{"LinkSort"}&SortBy=TicketFreeText4&OrderBy=Up" onmouseover="window.status='$JSText{"sort downward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Config{"Frontend::ImagePath"}down-small.png" alt="$Text{"down"}"></a>
</th>
##-----------------------------------End My Custom Code-------------------------------------------------------------------------
Then Find:
<!-- dtl:block:Bulk -->
</td>
<td>
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="PriorityID-$Data{"PriorityID"}" title="$Text{"Priority"}: $Text{"$Data{"Priority"}"}" width="1%"> </td>
<td>
<a href="$Env{"Baselink"}Action=AgentTicketZoom&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$JSText{"Zoom"}'; return true;" onmouseout="window.status='';" title="$QData{"Title"}">$Data{"TicketNumber"}</a>
</td>
</tr>
</table>
</td>
Inserting this CODE will ACTUALLY populate the data into the column you just created above.
##---------My Custom Code-------------------------------------
<td width="10%">
<div title="$QData{"TicketFreeKey4"}">$QData{"TicketFreeText4","15"}</div>
</td>
##--------------My Custom Code---------------------------------