Skip to content

Created an Instance Check #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ GlideLDAP API usage is unsupported by ServiceNow and hence should be avoided, ra
### Check for Orphaned Tickets
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.

### Check Inactive Business Rules over 90 days
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.

## Category: Upgradability

### Call GlideRecord using new
Expand Down
2 changes: 1 addition & 1 deletion ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4d6lPrUkCVTDgWYn5zU7vu4stzuS-TziCS-zwvUKtV6pl_XMX5Tj-ebHSo_WkFHOKdmi0Ujiy319GF9bCMGVC16bo9b_IO79Y7WPQlkZLCbMBK-_DQKiWEybC9f1ZalcFWo7V4GrtTCBA8jzgVuih9sHYUU8pBeYGaWqFnKL2bd8IAq9VhtmJM_TuEc1kBvs7Nxkz9ixLDGIH4y4hVzMNOJX9_YneP-MN3X1LH88mDVggqTGcAspNfEjeFwlnSdVyaLuzARhoyNhQmW-02eoXtCCio1Yhf5vjbuvWQrxxeRp-jl52NUBETQaNpvlHpVGHl8yAn5H-JI4yHLuJRrw0okqbBWyMgfP3M6LrWJEwR4YjL0aAVVdk9KL3bq9ylh1sEncKCGHZrzpBqXgF_6qJ_C4L6kZl3k-QxXTBEPuWScooyFBJpntmKF19xhnJtQn4LIfF9vWhm9K5PVSzGF2ZGophrvIZvrktw_u4Lnn1Ousm0kEtkYSELmujsAUbXLDOt0_A2KfGpCQmw-1Av5eHfEhzIHwIEk9wjE6BdaExpaZqL_8QIGMHuU4N09_l9uJ_whnwDLeaPRCJjzkwaxLTuetU9mwMVvW8PTJsZQgvnJ6DNr2LAog737M0_LjoIeO10FEwgwNRSCA_nar42g3jwPPWgcpVaMt-ImskANvhys
2GkIkYTRLHBrnaK0BLk-XjxdsvdTIZ9jJdpNRMX35K_6xuWTi5y1Ry99K-DOjlG11wqAiWwvl7aCdE4ZWrSiATbI0lxnUdQ9WxlKwYNvs1x4VCYSXFOyYvTvKT3kiAZAzCrckOa4Em4EIaQWsrb_I8Hs0bgKv33rj-ePUrlm_eyaKJ2rnW23umP3MLy86FEu-J5jxkDLisX7iqlAtjOoRsUQBweQsMoxupOYvfpdE9hb2_IVDL9CoKdTg80_4ggyJ8PNBz0-61EPdmnU7cRKcwrgivmxrwlsMZRJ1uYb2HSI-uveGE4A7AF1o6mBZIz6ssbtFd7EiA0adaGXD5P15jiG014hPjkYP4HKiiA0_Yjt6wL60LGi3OSCJ9gd8YGeijcceUhadJ8o7-_9kKB87bMrCZLimt0eMOU9IP8roKLd8mrCC7yROA1N93b861zaMf9Rya_aFIMJAxF42hodGemepQf6byCLRA_-rQf6UZS9gCn3BUKuaXq3SQ-zJZRa8abRZPslmATdHB_qc3qD-zHdKaau-2U4IjCX5uN8_zJWyiHrskGbzNbjghd7A0IyCLH5cWiIxHZp41YeMQQhXX0ZQyhH8rnFFviKVQkfU9MEVdpqhBTLKe5B0bM5sXYhejFEzKJayrE0FcpgYQhxsN3AyPQpH5w62LMaCkTbugU
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
<scan_table_check action="INSERT_OR_UPDATE">
<active>true</active>
<advanced>false</advanced>
<category>manageability</category>
<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"/>
<item endquery="false" field="sys_updated_on" goto="false" newquery="false" operator="&lt;" or="false" value="javascript:gs.beginningOfLast90Days()"/>
<item endquery="false" field="sys_created_by" goto="false" newquery="false" operator="!=" or="false" value="glide.maint"/>
<item endquery="false" field="sys_updated_by" goto="false" newquery="false" operator="!=" or="false" value="admin"/>
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
</conditions>
<description>If the business rule is inactive for more than 90 days and not created by glide.maint and updated by admin</description>
<documentation_url/>
<finding_type>scan_finding</finding_type>
<name>Check Inactive Business Rules over 90 days</name>
<priority>4</priority>
<resolution_details/>
<run_condition/>
<score_max>100</score_max>
<score_min>0</score_min>
<score_scale>1</score_scale>
<script><![CDATA[(function (engine) {

// Add your code here

})(engine);]]></script>
<short_description>Looks at Business Rules which is inactive for more than 90 days</short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-28 16:07:29</sys_created_on>
<sys_id>2dfd38d983ed1210e0def6d6feaad3ee</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>Check Inactive Business Rules over 90 days</sys_name>
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
<sys_policy/>
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
<sys_update_name>scan_table_check_2dfd38d983ed1210e0def6d6feaad3ee</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-28 16:07:29</sys_updated_on>
<table>sys_script</table>
<use_manifest>false</use_manifest>
</scan_table_check>
<sys_translated_text action="delete_multiple" query="documentkey=2dfd38d983ed1210e0def6d6feaad3ee"/>
</record_update>
Loading