[SOLVED] - Hide SLA Dropdown on Tickets

Moderator: crythias

Locked
retro2707
Znuny advanced
Posts: 131
Joined: 16 Apr 2014, 17:06
Znuny Version: 6.0.12

[SOLVED] - Hide SLA Dropdown on Tickets

Post by retro2707 »

Hi,

We are wanting to automatically generate the SLA from the priority/ criticality, this has been setup and is working fine. I would therefore like to hide the SLA dropdown from the agent as it just causes confusion.

I have looked through the sysconfig but cant for the life of me find an option to disable the SLA, and it doesent show up as a dynamic field.

Could anyone help please?

Brendan
Last edited by retro2707 on 29 Oct 2014, 11:25, edited 1 time in total.
Setup:
OTRS 6.0.12
Hosted on CentOS 7.4/ MySQL - MariaDB (5.5.60)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Hide SLA Dropdown on Tickets

Post by crythias »

hide it from the DTL.
Note that normally, I'd indicate that SLA should remain an independent selection because you can, in theory, reduce the priority once the first contact/assessment is made on the ticket (No, it's not really a 5 because of paper jam/out of toner) but the SLA (Agreed upon time to complete) doesn't necessarily change because the priority (how soon to start/address/assess) changes.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
retro2707
Znuny advanced
Posts: 131
Joined: 16 Apr 2014, 17:06
Znuny Version: 6.0.12

Re: Hide SLA Dropdown on Tickets

Post by retro2707 »

Ok, its possible at least, thanks.

Go easy with me here, i'm a newcomer to OTRS :). I think i found what you mean.

The following code I found is from AgentTicketEmail.dtl

Code: Select all

<!-- dtl:block:TicketSLA -->
                    <label for="SLAID">$Text{"Service Level Agreement"}:</label>
                    <div class="Field">
                        $Data{"SLAStrg"}
<!--dtl:js_on_document_complete-->
<script type="text/javascript">//<![CDATA[
    $('#SLAID').bind('change', function (Event) {
        Core.AJAX.FormUpdate($('#NewEmailTicket'), 'AJAXUpdate', 'SLAID', ['TypeID', 'Dest', 'NewUserID', 'NewResponsibleID', 'ServiceID', 'NextStateID', 'PriorityID', 'SignKeyID', 'CryptKeyID', 'To', 'Cc', 'Bcc', 'StandardTemplateID' $Data{"DynamicFieldNamesStrg"}]);
    });
//]]></script>
<!--dtl:js_on_document_complete-->
                    </div>
                    <div class="Clear"></div>
<!-- dtl:block:TicketSLA -->
So I basically should just back the file up, comment this out and restart HTTPD?
Setup:
OTRS 6.0.12
Hosted on CentOS 7.4/ MySQL - MariaDB (5.5.60)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Hide SLA Dropdown on Tickets

Post by crythias »

dtl is processed on demand. No caching, no restart of apache necessary. Any 500 errors are likely syntax errors (you didn't delete enough/you deleted too much, etc.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
retro2707
Znuny advanced
Posts: 131
Joined: 16 Apr 2014, 17:06
Znuny Version: 6.0.12

Re: Hide SLA Dropdown on Tickets

Post by retro2707 »

crythias.

Fantastic, that does the job perfectly, thanks a lot for your help.
Setup:
OTRS 6.0.12
Hosted on CentOS 7.4/ MySQL - MariaDB (5.5.60)
Locked