How to restrict submission of a change request in a blackout window ?

Gaurav Kumar15
Giga Guru

If Planned Start Date & planned End Date falls in blackout window, then it will not allow to submit a change request ?

4 REPLIES 4

ppparmar
Giga Contributor

You can use out of box "Check Conflict" functionality and use it in your UI Action using client script to show alert before submitting change.



//Code that runs without 'onclick'


//Ensure call to server-side function with no browser errors


if (typeof window == 'undefined')


    checkConflicts();




function checkConflicts() {


    suppressMaintenanceScheduleMessages = true;


    var conflictDetector = new ChangeCheckConflicts(current);


    var conflictResults = conflictDetector.check();




    current.conflict_status = 'No Conflict';


    var msg;


    if (conflictResults < 0)


          msg = gs.getMessage('Configuration Item needed for conflict analysis');


    else if (conflictResults == 0)


          msg = gs.getMessage('There are <FONT COLOR="green">NO CONFLICTS</FONT>');


    else {


          msg = gs.getMessage('There <FONT COLOR="tomato">ARE CONFLICTS</FONT> - See "Conflicts" related list');


          current.conflict_status = 'Conflict';


    }


Hi ppparmar,



With this OOB functionality, it checks for all types of Conflicts(Like Not in Maintenance Window,CI already scheduled,etc. ). But i only want to check specifically for "blackout window" only, that if the change we are scheduling falls in the blackout, then i need an alert, or will be able to set value in some field.?


ayush_saxena
Tera Expert

In that case you might need to define conflict properties under administration. Hope it helps !!



Always mark the question as answered !! If answered as per your expectations


Regards,


Ayush Saxena


Thanks Ayush