Exclude standard changes from Maintenance Window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2016 06:54 AM
Not sure how to ask this question so best I can do is explain what is happening and why I want to change it. We are upgrading to Helsinki and are planning on utilizing the new automated collision detection. This comes with a Conflict Status field and an embedded list of any conflicts found. What we are realizing is, Standard Changes are being shown as a conflict for the CI being outside the Maintenance Window and could confuse our users. We made a decision in the past that Standard Changes can be done at anytime with no regard to the maintenance window because they are so low risk, low impact, and history of success. Our goal is to find a way to not have conflict detection check the maintenance window if the change type is Standard. Are only other option is to hide the Conflict Status and embedded list is the type is Standard. This last resort option would hide all conflicts which is fine, but could hold value for other conflicts.
Here is the Conflict Status field
Here is the embedded list
I think my question is: Where can I find the properties for when to check a Change against the Maintenance Window, and can we have it bypass that check if the type is Standard?
Thanks in advance for any feedback
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2016 07:51 AM
Hello Tadd,
You can do this by overloading the _getChangesWithCommonCIs function from the ChangeCheckConflictsSNC script include.
Copy the function from the SNC script include into the ChangeCheckConflicts script include, pasting it just below the initialize method. This will cause Conflict Detection to use the overloaded method rather than the SNC class variant.
In the copied function add the following lines of code:
Just below the changeRequestGR.addActiveQuery() around line 71
changeRequestGR.addQuery("type","!=","standard");
Just below the changeRequestGR2.addQuery for cmdb_ci IN ids around line 81
changeRequestGR2.addQuery("type","!=","standard");
This will prevent standard type change requests from being considered in conflict detection.
This code is provided 'as-is' and should be tested thoroughly before being added to a production system. Making this change will be seen as a customization of the conflict detection feature.
Hope that points you in the right direction.
Regards,
Chris Henson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2024 08:07 AM
hi @chrishenson
i see this script include as read only and i am unable to edit the script , is there any way to edit this one to active the requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 02:30 AM
Hello,
Which of the scripts mentioned are you seeing as read only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2024 08:56 AM