- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 11:50 PM
Hi All,
I want to make 'Propose Major Incident' feature available to ServiceDesk Group, There is a OOB context menu UI Action and a policy protected script include for this.
Service Desk group already has ITIL role and 'sn_incident_write' is part of a ITSM plugin which is not installed.
Below script is checking either ITIL or 'sn_incident_write', SD team has ITIL role still the propose incident feature is not available.
ROLE_ITIL: 'itil',
ROLE_INCIDENT_WRITE: 'sn_incident_write',
canProposeMIC: function() {
if(!gs.hasRole(this.ROLE_ITIL + ',' + this.ROLE_INCIDENT_WRITE) || this.isIncidentInactive())
return false;
// A child incident cannot be proposed as a major incident candidate
if(this._gr.parent_incident)
return false;
// An incident can be proposed as a major incident manually, only if it is not already proposed and not already accepted as a major incident.
// If an incident was rejected or canceled as major incident, user can again propose as a major incident based on new justification.
return gs.nil(this._gr[this.ATTR_MAJOR_INCIDENT_STATE]) || this._gr[this.ATTR_MAJOR_INCIDENT_STATE] == this.MAJOR_INCIDENT_STATE.REJECTED || this._gr[this.ATTR_MAJOR_INCIDENT_STATE] == this.MAJOR_INCIDENT_STATE.CANCELED;
},
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 11:53 PM
HI,
Go to that UI Action, under 'requires roles' add the role which you want to add..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 11:53 PM