Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022 12:19 PM
I believe I have found a solution (Rome/San Diego) to only count active requests instead of all requests.
1. Open the ActivityConfigurationUtilSNC Script Include:
/sys_script_include.do?sys_id=1dc8fe7253b03010067cddeeff7b1243&sysparm_view=&sysparm_domain=null&sysparm_domain_scope=null
2. Navigate to Line 423
3. Add reqQuery.addQuery('active', true); ...Before reqQuery.query();
Final result should look like this:
for (var i = 0; i < myReqConfigList.length && reqCount <= this.ITEM_SUMMARY_COUNT_LIMIT; i++) {
var myReqConfigRecord = myReqConfigList[i];
var reqQuery = this._getMyReqRecQuery(myReqConfigRecord, true);
reqQuery.addQuery('active', true);
reqQuery.query();
if (reqQuery.next())
reqCount += Number(reqQuery.getAggregate('COUNT'));
}
return reqCount;
},