To make SLA mandatory while creating a service request

To make SLA mandatory while creating a service request

The steps mentioned below make the SLA selection mandatory for any service request creation.
Tested in builds : 14000 and 14301.

Script:

if(!jQuery("#servicesla-selected").attr("data-association-id") || jQuery("#servicesla-selected").attr("data-association-id") === '0' ){
   alert("Kindly Choose a SLA to proceed");
   $CS.stopFormSubmission();
 } 

Field and Form Rule Configuration:

Under Admin > Field and Form Rules > Service > On Form Submit



Whenever a service request is created using the mentioned templates, upon submitting the form, a pop-up will appear, prompting us to select an SLA and making it mandatory.

Note: If the "All templates" option is selected, any templates that do not have an associated SLA will be blocked from creation or editing. Therefore, it is advisable to set templates that have an associated SLA.

                  New to ADSelfService Plus?

                    • Related Articles

                    • SLA not working

                      There are a few configurations that need to be checked 1. Account/Site Check the request Account & Site, Now, go to Admin>Service Level Agreements>Filter the Account & Site and make sure the SLA is created for the same  2. Operational Hours Go to ...
                    • Set SLA automatically for a service request using FAFR

                      Note: The below FAFR script will work only on 10600 MSP and above Requirement: Set SLA automatically for a service request depending on the Priority. Usecase: Let us consider a scenario where SLA has to be set depending on the requester's associated ...
                    • FAFR - How to mandate field when SLA is overdue

                      1. Under Admin >> Incident Template >> Edit the template in question 2. Choose field and form rules and apply the below script On Form Submit var duebyDate = $CS.getValue("DUEBYDATE"); var currentDate = new Date(); if(currentDate>duebyDate) { ...
                    • How to send SLA notification mail to the different users when a SLA is breached for builds 10500 and above

                      We can use the Email feature in the custom triggers to send notifications to different roles configured in SDP-MSP. By default, the SLA notification can be sent to Account Managers, Point of Contact, Technician, Requester. If you would like to send ...
                    • Set SLA automatically for a service request using FAFR

                      Requirement: Set SLA automatically for a service request depending on the requester site. Usecase: Let us consider a scenario where SLA has to be set depending on the requester's associated site. To do this,  we need to create the required SLA list ...