Skip to content

Commit c459720

Browse files
prash5595adminSapphicFire
authored
Created an Instance Check (#168)
* I created a Instance Scan: table check to track Inactive Business Rules which are updated before 90 days and not created by glide.maint and not updated by admin. This ensures removal of unnecessary overhead by identifying inactive business rules. * Update README.md Added the Check for Inactive Business Rules over 90 days --------- Co-authored-by: admin <[email protected]> Co-authored-by: Astrid Sapphire <[email protected]>
1 parent 86a3ea6 commit c459720

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ GlideLDAP API usage is unsupported by ServiceNow and hence should be avoided, ra
161161
### Check for Orphaned Tickets
162162
Tickets from tables such as Incident, Change Request, Problem, and other task-related tables should always have an Assignment Group specified. These tickets represent issues or requests that require attention and action. Leaving the Assignment Group field empty can result in unresolved issues or delays in implementing fixes, as no team will be accountable for the resolution. Since the Assignment Group is meant to designate the responsible team for managing these tickets, it should never be left blank.
163163

164+
### Check Inactive Business Rules over 90 days
165+
Inactive Business Rules which are not updated for more than 90 days and not created by glide.maint and not updated by admin should be identified to remove unnecessary overhead.
166+
164167
## Category: Upgradability
165168

166169
### Call GlideRecord using new
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
instance-scans
2-
nlI07NudNmWmzNqJBQCgjd6a0Cm4Z_ft4ICZqmugvXrROPNMHMJWlNig7JLKwBUDjHeWnC9mI-_icHz-Vb03zEzQaAdIrRVKcjMm2qcnCV5ZqphIxDJBiSvw7P5DWgPnt8gRm8fIhin4fLA2wPf1EY1mUdznKGQ7wmtBdyxrPbEMJul4pk4KjCDx4MYYSzDnLRhkNI2vH9KYY2VeyvZ3bNG5F57NqAIDayIAIoNr9tFPHBfmVN16jxnK-vMFbcr3AlckSAuktELRgOCNL97T4WynRZ6Q34V-IIM2Z_Eaw55mGJYGOlZTFQ9nACabzkxNpZ7MW80kVFk5mQA6ubYx5DwIYvyeAHva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uWTi5y1Ry99K-DOjlG11wqAiWwvl7aCdE4ZWrSiATbI0lxnUdQ9WxlKwYNvs1x4VCYSXFOyYvTvKT3kiAZAzCrckOa4Em4EIaQWsrb_I8Hs0bgKv33rj-ePUrlm_eyaKJ2rnW23umP3MLy86FEu-J5jxkDLisX7iqlAtjOoRsUQBweQsMoxupOYvfpdE9hb2_IVDL9CoKdTg80_4ggyJ8PNBz0-61EPdmnU7cRKcwrgivmxrwlsMZRJ1uYb2HSI-uveGE4A7AF1o6mBZIz6ssbtFd7EiA0adaGXD5P15jiG014hPjkYP4HKiiA0_Yjt6wL60LGi3OSCJ9gd8YGeijcceUhadJ8o7-_9kKB87bMrCZLimt0eMOU9IP8roKLd8mrCC7yROA1N93b861zaMf9Rya_aFIMJAxF42hodGemepQf6byCLRA_-rQf6UZS9gCn3BUKuaXq3SQ-zJZRa8abRZPslmATdHB_qc3qD-zHdKaau-2U4IjCX5uN8_zJWyiHrskGbzNbjghd7A0IyCLH5cWiIxHZp41YeMQQhXX0ZQyhH8rnFFviKVQkfU9MEVdpqhBTLKe5B0bM5sXYhejFEzKJayrE0FcpgYQhxsN3AyPQpH5w62LMaCkTbugU
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
2+
<scan_table_check action="INSERT_OR_UPDATE">
3+
<active>true</active>
4+
<advanced>false</advanced>
5+
<category>manageability</category>
6+
<conditions table="sys_script">active=false^sys_updated_on&lt;javascript:gs.beginningOfLast90Days()^sys_created_by!=glide.maint^sys_updated_by!=admin^EQ<item endquery="false" field="active" goto="false" newquery="false" operator="=" or="false" value="false"/>
7+
<item endquery="false" field="sys_updated_on" goto="false" newquery="false" operator="&lt;" or="false" value="javascript:gs.beginningOfLast90Days()"/>
8+
<item endquery="false" field="sys_created_by" goto="false" newquery="false" operator="!=" or="false" value="glide.maint"/>
9+
<item endquery="false" field="sys_updated_by" goto="false" newquery="false" operator="!=" or="false" value="admin"/>
10+
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
11+
</conditions>
12+
<description>If the business rule is inactive for more than 90 days and not created by glide.maint and updated by admin</description>
13+
<documentation_url/>
14+
<finding_type>scan_finding</finding_type>
15+
<name>Check Inactive Business Rules over 90 days</name>
16+
<priority>4</priority>
17+
<resolution_details/>
18+
<run_condition/>
19+
<score_max>100</score_max>
20+
<score_min>0</score_min>
21+
<score_scale>1</score_scale>
22+
<script><![CDATA[(function (engine) {
23+
24+
// Add your code here
25+
26+
})(engine);]]></script>
27+
<short_description>Looks at Business Rules which is inactive for more than 90 days</short_description>
28+
<sys_class_name>scan_table_check</sys_class_name>
29+
<sys_created_by>admin</sys_created_by>
30+
<sys_created_on>2024-10-28 16:07:29</sys_created_on>
31+
<sys_id>2dfd38d983ed1210e0def6d6feaad3ee</sys_id>
32+
<sys_mod_count>0</sys_mod_count>
33+
<sys_name>Check Inactive Business Rules over 90 days</sys_name>
34+
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
35+
<sys_policy/>
36+
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
37+
<sys_update_name>scan_table_check_2dfd38d983ed1210e0def6d6feaad3ee</sys_update_name>
38+
<sys_updated_by>admin</sys_updated_by>
39+
<sys_updated_on>2024-10-28 16:07:29</sys_updated_on>
40+
<table>sys_script</table>
41+
<use_manifest>false</use_manifest>
42+
</scan_table_check>
43+
<sys_translated_text action="delete_multiple" query="documentkey=2dfd38d983ed1210e0def6d6feaad3ee"/>
44+
</record_update>

0 commit comments

Comments
 (0)