diff --git "a/Application CI Count \342\200\223 Non-Operational & Installed" "b/Application CI Count \342\200\223 Non-Operational & Installed" new file mode 100644 index 0000000000..8cf6404112 --- /dev/null +++ "b/Application CI Count \342\200\223 Non-Operational & Installed" @@ -0,0 +1,12 @@ +var ga = new GlideAggregate('cmdb_ci_appl'); +ga.addQuery('operational_status', 2); // Non-operational +ga.addQuery('install_status', 1); // Installed +ga.addAggregate('COUNT'); +ga.query(); + +var total = 0; +if (ga.next()) { + total = ga.getAggregate('COUNT'); +} + +gs.info('Application CIs installed but not in operational count: ' + total);