third time lucky!
--- On Thu, 12/2/09, bis <bi...@yahoo.co.uk> wrote: From: bis <bi...@yahoo.co.uk> Subject: Changing Type and Priority of ticket in the same way as changing queue To: otrs@otrs.org Date: Thursday, 12 February, 2009, 2:39 PM Sorry I forgot to attach the files! Bis Hi I want to change the Type and Priority of a ticket directly from the Zoom view, in the same way as we can change the Queue of the ticket, without having to go through the additional step of clicking "Amend" and then submitting the changes. If we are in the zoom view and want to change the Type or Priority of the ticket, we need to click "Amend" and then make the changes in the dropdown menus for Type or Priority and submit the changes (see attachment "amend.png"). What we would like to do is to be able to directly change the Type or Priority from the zoom view, as we are able to change the Queue of the ticket (see attachment "zoom.png"), without having to go into the "Amend" view. I have tried copying the dropdown menus for "Type" and "Priority" from the file "/otrs/Kernel/Output/HTML/Standard/AgentTicketPriority.dtl" to the file "/otrs/Kernel/Output/HTML/Standard/AgentTicketZoom.dtl" - but without success. The subroutine which creates the menu for changing the "Queue" in the zoom view, as defined in the file "/otrs/Kernel/Output/HTML/Standard/AgentTicketZoom.dtl", is the following: <b>$Text{"Change queue"}:</b><br> <form action="$Env{"CGIHandle"}" method="get"> <input type="hidden" name="Action" value="AgentTicketMove"> <input type="hidden" name="Subaction" value="Unlock"> <input type="hidden" name="QueueID" value="$QData{"QueueID"}"> <input type="hidden" name="TicketID" value="$QData{"TicketID"}"> $Data{"MoveQueuesStrg"} <input class="button" type="submit" value="$Text{"Move"}"> </form> Could someone suggest something similar I can do for changing Type and Priority? I tried something like the code below, for example, trying to copy the form elements from the file "/otrs/Kernel/Output/HTML/Standard/AgentTicketPriority.dtl" to the file "/otrs/Kernel/Output/HTML/Standard/AgentTicketZoom.dtl" but all that did was to create a submit button without creating a dropdown menu. <b>Change priority:</b><br> <form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="compose"> <input type="hidden" name="Action" value="$Env{"Action"}"> <input type="hidden" name="Subaction" value="Store"> <input type="hidden" name="TicketID" value="$QData{"TicketID"}"> <input type="hidden" name="Expand" value=""> <input type="hidden" name="ImpactRC" value="0"> <input type="hidden" name="PriorityRC" value="0"> <input type="hidden" name="FormID" value="$QData{"FormID"}"> $Data{"PriorityStrg"} <input class="button" accesskey="g" type="submit" value="$Text{"Submit"}" onclick="return submit_compose();"> </form> Is there a way of achieving what I want through the front end? Any help would be gratefully appreciated! Thanks a lot! Bis
<<attachment: zoom.jpg>>
<<attachment: amend.jpg>>
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs