Change free text sorting - OTRS ITSM

452 Views Asked by At

Hi I want to show free text fields in Change overview , I edited the AgentITSMChangeOverviewSmall.dtl file and added code for change free text. Change free text field is visible in Change Overview but I am enable to sort as we can do with other attributes.

Here is my code:

    <th class="ChangeFreeText1 $QData{"CSS"}">
    <a href="$Env{"Baselink"}Action=$Env{"Action"};$Data{"LinkSort"};SortBy=ChangeFreeText1;
     OrderBy=$LQData{"OrderBy"}">$Text{"ChangeFreeText1"}</a>
    </th>   

   <td>
   <div>$Text{"$Data{"ChangeFreeText1"}"}</div>
   </td>

Can someone tell me whats missing in my code.

1

There are 1 best solutions below

1
On

The backend Kernel::System::ITSMChange ChangeSearch() does not support ordering by FreeText fields, unfortunately, so you should add that as well.