reopen incident action not visible on ec portal

dev46
Tera Contributor

please find attached screenshot:

dev46_0-1693412242215.png

'reopen' action is not visible.its oob widget

5 REPLIES 5

I had a similar requirement and the way we got this working is by adding a custom function on the IncidentUtils Script Include. Please see below: 

 

canReopenIncident: function(current) {
return current.incident_state == IncidentState.RESOLVED && (gs.getUser().hasRole('snc_internal') || gs.getUser().hasRole('itil')) && !this._isMajorIncident(current);
},
type: 'IncidentUtils'
});