Name

global.CIIncidents

Description

No description available

Script

var CIIncidents = Class.create();
var res = "";
CIIncidents.prototype = {
  initialize: function(input) {
  	var parent = new GlideRecord("em_alert");
  	parent.addQuery("number", input);
  	parent.query();
  	if(parent.next()) {
  		var current = new GlideRecord("incident");
  		var emAiInsight = new EmAiInsight();
  		emAiInsight.getSameCiTaskQuery(current, parent);
  		res = current.getEncodedQuery();
  	} else {
  		gs.log("******* No Record was found for alert number =" + input + "*****");
  	}
  },
  get: function () {
  		return res;	
  },
  type: 'CIIncidents'
};

Sys ID

f03cce3c5374b300c929ddeeff7b12c7

Offical Documentation

Official Docs: