Thank you for your reply.
We try to use OTRS for some HR recruitment tracking, beside the normal help desk/support thing. So the idea came up to use a special ticket types as there will be more than one. We created a queue structure as well. The queues represent the functional departments and the ticket type should represent the different type of employment (fulltime, freelancer...).
I tried to create some acl to make these types only available in these queues.
I found that the agendTicketPhone form provides some AJAX refresh if the destination queue is changed.
Code: Select all
<label class="Mandatory" for="Dest"><span class="Marker">*</span> $Text{"To queue"}:</label>
<div class="Field">
$Data{"ToStrg"}
<div id="DestError" class="TooltipErrorMessage" ><p>$Text{"This field is required."}</p></div>
<div id="DestServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
$('#Dest').bind('change', function (Event) {
Core.AJAX.FormUpdate($('#NewPhoneTicket'), 'AJAXUpdate', 'Dest', ['TypeID', 'NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', $Data{"DynamicFieldNamesStrg"}, 'To', 'Cc', 'Bcc']);
});
//]]></script>
<!--dtl:js_on_document_complete-->
</div>
If I understand that right if the queue ('Dest'-field) is changed than the other provided fields will be refreshed. So the ALCs should be checked. But it seems not to work this way.
When I look at your 'hack' it switches some extra text fields on/of depending on the queue selected. The ticket type field is there all the time but its content should change depending on the queue selected.
I understand that there is a problem as the ACLs are server side and the form is on the client side, but i hoped that the AJAX functionality could fix that gap, and get the server side informations to the client side.
I try to rebuild the ACLs to restrict the ticket types based on the user group the agent belongs to, but that seems to be tricky as some agents are in groups for both worlds support and recruitment. But i try.
Is there some documentation on the ajax features OTRS provides?