Requiring comments when a ticket is reopend in the service portal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2024 01:10 PM
Good day to all,
I have a requirement to make comments mandatory when a ticket is reopened from the service portal. I have gone in a modified the IncidentUtils in the Scripts included to allow for the reopen button to show under the action button. Now I need to make comments be mandatory.
var IncidentUtils = Class.create();
IncidentUtils.prototype = Object.extendsObject(IncidentUtilsSNC, {
initialize: function() {
IncidentUtilsSNC.prototype.initialize.call(this);
},
/***************Custom changes****************/
canReopenIncident : function(current) {
return current.incident_state == IncidentState.RESOLVED;
},
type: 'IncidentUtils'
});
IncidentUtils.isCopyIncidentEnabled = function(current) {
var incidentUtils = new IncidentUtils();
return incidentUtils.isCopyIncidentFlagValid();
};
IncidentUtils.isCreateChildIncidentEnabled = function(current) {
var incidentUtils = new IncidentUtils();
return incidentUtils.isCreateChildIncidentFlagValid();
};
IncidentUtils.canReopenIncident = function(cuurent) {
var incidentUtils = new IncidentUtils();
return incidentUtils.incident_state == IncidentState.RESOLVED
};
0 REPLIES 0