Set SLA automatically for a service request using FAFR

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 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 the FAFR under the respective Service Templates under Admin -->  Service Catalog (edit the respective template)


setTimeout(function(){
  var priority = $CS.getText("PRIORITY");
  var SLA = "Select";
  if (priority === "Low") {
    SLA = "Service Catalog SLA";
  } else if (priority == "Medium") {
    SLA = "Service Catalog SLA2";
  } 
  jQuery('[id^=servicesla_option_]:contains("' + SLA + '")').trigger("click"); 
},400); 





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


        New to ADManager Plus?

          New to ADSelfService Plus?

            • Related Articles

            • 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") || ...
            • Account specific request template: Redirection to requester's account based template from default template using FAFR

              Tested in builds 14000, 14200 and 14201 (Global FAFR): Step 1: In Global FAFR, on form load, configure an FAFR and execute the below script under Action as shown below, try{ $req.form.destroyForm(undefined, false); }catch(err){} ...
            • Route from default request to service catagories

              To route from default request page to service catagories Kindly follow the steps below, Access the Admin Module Select incident template>>Fields and Forms Rules Create a new rule, paste the script and save it I have attached a screenshot for ...
            • Disable Default Template - Using FAFR

              1. Navigate to Admin>Incident Template>> Edit Default Template  2. Select Field & Form Rules Tab 3. Select On form Load  4. Make sure to select "Applies to Technicians" and set the action as Execute Script and paste the below script  ...
            • Script to set fields from CSV using FAFR.

              Works in 10604 Requirement: Load Data from CSV depending on the value selected in an additional field. Usecase: Assume there are 3 additional fields for a request template, namely, "Reference number", "Payment type and "Vendor". "Reference number" is ...