Change Requester role to be played only by technicians.

Change Requester role to be played only by technicians.

Please go to Admin - Field and form rules and add the below script. 


var additionalField = "UDF_CHAR2";

$CS.referField(additionalField, "technicians", {url: "/api/v3/technicians"}); 
$CS.element(additionalField).on("change", function() {
$CS.setValue("INITIATOR",$CS.getValue(additionalField));
});



Screenshot for reference:


                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to set Change Approver based on the Requester's Reporting to

                      Tested in build 14306 Requirement: When a change is created, the Change Approver role is to be filled automatically with the Change Requester's "Reporting to" user. Steps: >> Attached are the contents for Global and Change Custom Functions. >> ...
                    • Script to automatically populate the "Line Manager" role based on the Change Requester

                      "When a Change Request is created, the Line Manager role will automatically be assigned to the user specified in the 'Reporting to' field of the particular Change Requester. Tested in builds: 14300 and 14303. Download the scripts attached. Global ...
                    • Change roles

                      SELECT chdt.changeid               "Change ID",         chdt.title                  "Title",         orgaaa.first_name           "Change Requester",         ownaaa.first_name           "Change Owner",  ...
                    • Query to show Technicians' login name, email, role and last login (PGSQL & MSSQL )

                      Tested in Build PGSQL (14300) or MSSQL (14306) SELECT AaaUser.FIRST_NAME "First Name", AaaUser.last_name "Last Name", adef.org_name "Account Name", sdo.name "Site Name", AaaContactInfo.EMAILID "E-mail", sduser.jobtitle, ar.name "Role", ...
                    • Converting a requester to a technician

                      Please follow the below steps to convert a requester to a technician. Step 1 (If the requester is already added under MSP Requester): 1) Log in as an administrator. 2) Go to Admin tab>>MSP Details>>MSP Requester(Left hand column). 3) Click on the ...