Auto Populate Scheduled Start Time and End Time in Change Request

Auto Populate Scheduled Start Time and End Time in Change Request

We can now auto-populate the Scheduled Start Time and End Time in a change request using FAFR.

Under Admin>Change Template>Field and Form Rules, you can use the below scrips 

Scheduled Start Time 

var x=$CS.getValue("SCHEDULEDSTARTTIME");

if ( x === undefined)

{    

$CS.setValue("SCHEDULEDSTARTTIME",new Date());  


Scheduled End Time

var x=$CS.getValue("SCHEDULEDSTARTTIME");

if ( x === undefined)

{    

$CS.setValue("SCHEDULEDSTARTTIME",new Date());  

x=$CS.getValue("SCHEDULEDSTARTTIME");
$CS.setValue("SCHEDULEDENDTIME",x);

/* set days and hours from the current date*/
/* Date Field */
var fieldName='SCHEDULEDENDTIME';
/* you can choose the value 0 to 27 days*/
var nextDay=7;
/* you can choose the value 0 to 23 hours*/
var nextHour=0;
$CS.setDateFromCurrentDate(fieldName,nextDay,nextHour); 
                  New to ADManager Plus?

                    New to ADSelfService Plus?