Reopen button for incident is not visible in esc portal.

Kishor O
Tera Sage

Hello team,

 

I am not able to see reopen button under actions of incident in esc portal.

we can only see close action even though reopen action has been declared in oob script line 41.

KishorO_0-1689059330098.jpeg

 

KishorO_1-1689059468225.png

 

 

1 ACCEPTED SOLUTION

Sails
Kilo Sage

Hi, check that IncidentUtils script include that have the function Canreopenincident

Make sure your incident satisfies the condition in there

Sails
ServiceNow Consultant
United Kingdom

View solution in original post

10 REPLIES 10

HAMDI Oussema
Tera Contributor

By default the reopen incident is available only for es users (users with no role)

To solve you issue:

Go to IncidentUtils script include
Under 

    /***************Custom changes****************/

Add you custom code: in my case i deleted the role restriction 

see below

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 &&!this._isMajorIncident(current);
},