Set SLA automatically for a service request using FAFR

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 and associate it to the service request.  And then configure the below script.

Configure a FAFR > On Form Load - Applies to all requester:

setTimeout(function(){
  var requester_site = $CS.getValue("REQUESTER.SITE");
  var SLA = "Select";
  if (requester_site === "Site Mexico") {
    SLA = "SLA_ServicedeskMX_8Hrs";
  } else if (requester_site == "Site Ecuador") {
    SLA = "SLA_ServicedeskEC_8Hrs";
  } 
  jQuery('[id^=servicesla_option_]:contains("' + SLA + '")').trigger("click"); 
},400);

 $CS.getValue("REQUESTER.SITE");  >> This can be modified to any of the request fields or request additional fields, as per your requirement.

eg:
For Group:      $CS.getText("GROUP");
For Tech:         $CS.getText("TECHNICIAN"); 
For Site:          $CS.getText("SITE");
For Priority:    $CS.getText("PRIORITY");
For Impact:     $CS.getText("IMPACT"); 
For Level:        $CS.getText("LEVEL");




                    New to ADSelfService Plus?

                      • Related Articles

                      • 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 ...
                      • 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") || ...
                      • Send escalation email to the Technician "Reporting to" if SLA is violated (Deluge).

                        From Builds 10600 and above Follow the below steps and based on the update we need to create a custom trigger based on the action set under the SLA escalation notification and then with the help of that we can execute the custom trigger and the ...
                      • Custom Module-Based Dependent Fields with FAFR

                        In the dynamic world of IT service management, form simplicity and accuracy play a major role in how smoothly requests are handled. However, many organizations face a recurring challenge—dependent field limitations within ServiceDesk Plus. Currently, ...
                      • 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 ...