We used to run OTRS 2.4.X and had modified our AgentTicketCompose.dtl to have the selected next ticket status based on the reply choice in order to save time.
Our goal was to have the ticket next status set to closed successful by default when we chose a "close-EN" or "close-DE" or "clse-FR" with the appropriate message language predefined.
The code was :
Code: Select all
<!-- start - manually insert for default answer -->
<dtl if ($Data{"ResponseID"} eq "3") { $Data{"NextStatesStrg"} = "<select name=StateID> <option value=13>$Text{"closed rejected"}</option> <option value=2 selected=selected>$Text{"closed successful"}</option> <option value=3>$Text{"closed unsuccessful"}</option> <option value=10>$Text{"closed with workaround"}</option> <option value=4>$Text{"open"}</option> <option value=7>$Text{"pending auto close+"}</option> <option value=8>$Text{"pending auto close-"}</option> <option value=12>$Text{"pending customer"}</option> <option value=11>$Text{"pending extern"}</option> <option value=6>$Text{"pending reminder"}</option> </select> <a id=AJAXImageStateID />"; }>
...
...
...
<!-- start - manually insert for default answer -->
<td class="contentkey">$Text{"Next ticket state"}:</td>
<td class="contentvalue">$Data{"NextStatesStrg"}</td>
Has anyone done this already in 3.2?
Is there a simpler way we don't know of? Using the close function with default body doesn't suit us because of the multiple languages involved.