Skip to content

Check for Orphaned tickets #130

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 5 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all 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: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ During the time it can be a situation that person is no longer active in the sys
GlideLDAP API usage is unsupported by ServiceNow and hence should be avoided, rather use LDAP Server Data Sources to pull data from LDAP via MID Server or directly through an internet facing LDAP.

### 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 not be left blank.

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.

## Category: Upgradability

Expand Down
2 changes: 1 addition & 1 deletion ca8467c41b9abc10ce0f62c3b24bcbaa/checksum.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NphMlwVg49IDN_AmbhZA_S2n4C2Ak0kx2FHZhxUGSGGxUbqgZMunGHiqZzRmFpvjBevGWNbaflHkL2XtSDBN4OyJbkF2BqC_swBzwqMIAVV449V_huL8FUWbgEpPvhHD2uyLtmpJR4q4WfEjJzmjWQnXFksmQtAHDFZp7M4XpWRfyFc_r05eE9u10khR0-YcO18-wKcYnWt4sJGYiyZhzioxcrb_D8yHEfrX6CAJUaQUy79-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Ca07z4J5s4TJUFUxkriPZDimd3NcG3gpIJzV3AJOgqeE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<active>true</active>
<advanced>true</advanced>
<category>manageability</category>
<conditions table="incident">active=true^EQ<item endquery="false" field="active" goto="false" newquery="false" operator="=" or="false" value="true"/>
<conditions table="incident">active=true^assignment_group=^EQ<item endquery="false" field="active" goto="false" newquery="false" operator="=" or="false" value="true"/>
<item endquery="false" field="assignment_group" goto="false" newquery="false" operator="=" or="false" value=""/>
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
</conditions>
<description>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.</description>
Expand All @@ -17,27 +18,30 @@
<score_min>0</score_min>
<score_scale>1</score_scale>
<script><![CDATA[(function(finding, current) {
var IncID = current.getValue('sys_id');
var inc = new GlideRecord('incident');
inc.addQuery('sys_id', IncID);
inc.addEncodedQuery("assignment_group!=null");
if (!inc.hasNext()) {
finding.increment();
}
//var IncID = current.getValue('sys_id');
// var inc = new GlideRecord('incident');
// inc.addQuery('sys_id', IncID);
// inc.addEncodedQuery("assignment_group!=null");
// if (!inc.hasNext()) {
// finding.increment();
// }
//if(current.assignment_group!=null){
finding.increment();
//}
})(finding, current);]]></script>
<short_description>Tickets from Incident table should have assignment group specified.</short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-07 18:22:05</sys_created_on>
<sys_id>7334dda283455210ae0854b6feaad378</sys_id>
<sys_mod_count>9</sys_mod_count>
<sys_mod_count>12</sys_mod_count>
<sys_name>Check for Orphaned tickets</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_7334dda283455210ae0854b6feaad378</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-07 18:33:38</sys_updated_on>
<sys_updated_on>2024-10-09 06:30:13</sys_updated_on>
<table>incident</table>
<use_manifest>false</use_manifest>
</scan_table_check>
Expand Down
Loading