How to set default Ticket Type

Moderator: crythias

Locked
stylle
Znuny newbie
Posts: 11
Joined: 17 Apr 2013, 12:37
Znuny Version: 3.2.4
Real Name: Jorge Ruão
Company: University of Porto

How to set default Ticket Type

Post by stylle »

Hi,

i've managed to set the default ticket type for new tickets created by email using Postmaster filters, but how do I set the default Ticket Type for tickets created at the Frontend "New Ticket Phone" or "New Ticket Email"?

Thanks,
Jorge
wurzel
Znuny guru
Posts: 3274
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: How to set default Ticket Type

Post by wurzel »

Hi,

for Customers:
Ticket::Frontend::CustomerTicketMessage###TicketTypeDefault

For Agents it's a change in a .dtl. But I do not know where exactly. I just have seen this. But never did this on my own :?

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
stylle
Znuny newbie
Posts: 11
Joined: 17 Apr 2013, 12:37
Znuny Version: 3.2.4
Real Name: Jorge Ruão
Company: University of Porto

Re: How to set default Ticket Type

Post by stylle »

Hi Wurzel,

thanks for the tips. I was actually interested in applying it at the Agent Frontent.

If it is a .dtl change it should be applyed at:
AgentTicketEmail.dtl
AgentTicketPhone.dtl

The Block for TicketType is

Code: Select all

<!-- dtl:block:TicketType -->
                    <label class="Mandatory" for="TypeID"><span class="Marker">*</span> $Text{"Type"}:</label>
                    <div class="Field">
                        $Data{"TypeStrg"}
                        <div id="TypeIDError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
                        <div id="TypeIDServerError" class="TooltipErrorMessage"><p>$Text{"This field is required."}</p></div>
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
$('#TypeID').bind('change', function (Event) {
    Core.AJAX.FormUpdate($('#NewEmailTicket'), 'AJAXUpdate', 'TypeID', [ 'Dest', 'NewUserID', 'NewResponsibleID', 'NextStateID', 'PriorityID', 'ServiceID', 'SLAID', 'SignKeyID', 'CryptKeyID', $Data{"DynamicFieldNamesStrg"}, 'To', 'Cc', 'Bcc']);
});
//]]></script>
<!--dtl:js_on_document_complete-->
                    </div>
                    <div class="Clear"></div>
<!-- dtl:block:TicketType -->
But i'm not sure how to do it... Any help would be great.

Thanks
wurzel wrote:Hi,

for Customers:
Ticket::Frontend::CustomerTicketMessage###TicketTypeDefault

For Agents it's a change in a .dtl. But I do not know where exactly. I just have seen this. But never did this on my own :?

Flo
Locked