Hi,
Today by default the impact of incident can be dependent on Service Impact of an affected service , and we need to have a similar function for urgency. So the urgency of incident should automatically gets changes based on the z_service_urgency of nr object of enterprise family.
Thru spel was able to change the urgency however it wont reflect until Save and do a refresh after the save.
So spent little time on calculateimpact method in apc.js to check the default CA provided function for impact and i feel the code is written in freeaccess.spl as CALCULATE_IMPACT is used to define the url
var url = cfgCgi + "?SID=" + cfgSID + "+FID=" + fid_generator() +
"+OP=CALCULATE_IMPACT"+
"+OPEN_DATE="+open_date_val+
"+END_DATE="+end_date_val+
"+AFF_SERVICE="+aff_service.value+
"+FACTORY="+ ticket_factory+
"+PRI_CAL_PERSID="+ pri_cal_persid+
"+PERSID=" + nx_escape(argPersistentID) +
"+CALLBACK=got_auto_impact_info";
Appreciate if anyone helps to figure out how the default function is designed
regards
sharath