Free Fields in QueView

Moderator: crythias

Locked
Brian2011
Znuny newbie
Posts: 8
Joined: 04 Jan 2011, 18:26
Znuny Version: 2.4.9

Free Fields in QueView

Post by Brian2011 »

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!
You do not have the required permissions to view the files attached to this post.
Brian2011
Znuny newbie
Posts: 8
Joined: 04 Jan 2011, 18:26
Znuny Version: 2.4.9

Re: Free Fields in QueView

Post by Brian2011 »

Hello,
Any ideas? Any site or documentation to point me too?

Thanks,
Brian
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Free Fields in QueView

Post by jojo »

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
Brian2011
Znuny newbie
Posts: 8
Joined: 04 Jan 2011, 18:26
Znuny Version: 2.4.9

Re: Free Fields in QueView

Post by Brian2011 »

So how would you go about it? A module, a template change?
Brian2011
Znuny newbie
Posts: 8
Joined: 04 Jan 2011, 18:26
Znuny Version: 2.4.9

Re: Free Fields in QueView

Post by Brian2011 »

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%">&nbsp;&nbsp;</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---------------------------------
Locked