choose response => set Ticket status

Moderator: crythias

Post Reply
NCA71
Znuny newbie
Posts: 2
Joined: 20 Jun 2012, 10:08
Znuny Version: 3.1.2

choose response => set Ticket status

Post by NCA71 »

Hi

I've modified the file /opt/otrs/Kernel/Output/HTML/Standard/AgentTicketCompose.dtl and added the following
to change the status of the ticket depending on the chosen response template:

Code: Select all

#Layers
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    Core.Agent.TicketAction.Init();
        switch ($QData{"ResponseID"}) {
                case 21: document.getElementById("StateID").value = 7;break;
                default: break;
        }
    //]]></script>
<!--dtl:js_on_document_complete-->
I can see with firebug that the status of the ticket is changed to "pending autoclose+" but right afterwards again to "open".
What I am missing and is this features already available in the release 3.1.2 without altering the dtl file?

Thanks a lot.

Cheers
NCA71
odyseja
Znuny newbie
Posts: 3
Joined: 26 Mar 2021, 18:44
Znuny Version: 6.0.0
Real Name: Marcin Przysowa

Re: choose response => set Ticket status

Post by odyseja »

This file not exist at v6.x.x
Maybe someone know how do change NextStatus per Response in ticket ?

EDIT:
Roy, admin, mention this as solution.
https://opar.perl-services.de/dist/Resp ... tate-6.0.2
Post Reply