Set Change Requester's reporting_to user as Change Approver
Requirement:
When a Change Request is submitted, Change requester's reporting to manager has to be set as Change Approver.
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. >> ...
How to set the requester field as logged in user
Go to Admin >> Field and Form Rules >> Create a rule with the below script var user = { name:$CS.getLoggedInUserLoginName(), id:$CS.getLoggedInUserId() }; $rf.setFieldValue('requester',user);
Change roles
SELECT chdt.changeid "Change ID", chdt.title "Title", orgaaa.first_name "Change Requester", ownaaa.first_name "Change Owner", ...
Change approval
SELECT chdt.CHANGEID AS "Change ID", chdt.TITLE AS "Title", orgaaa.FIRST_NAME AS "Change Requester", qd.QUEUENAME AS "Group", ownaaa.FIRST_NAME AS "Change Owner", catadef.CATEGORYNAME AS "Category", priodef1.PRIORITYNAME AS "Priority", ...
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 ...