Major Incident management - Make 'Propose Major Incident' feature available to ServiceDesk Group

Ankita9
Tera Contributor

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;
},

find_real_file.png

1 ACCEPTED SOLUTION

Raghu Ram Y
Kilo Sage

HI,

Go to that UI Action, under 'requires roles' add the role which you want to add..

find_real_file.png 

View solution in original post

1 REPLY 1

Raghu Ram Y
Kilo Sage

HI,

Go to that UI Action, under 'requires roles' add the role which you want to add..

find_real_file.png