Notifications

19 views

Description

Users who have the major_incident_management role on their profile are not seeing the ability to close major incidents. ServiceNow Docs for this role indicate that they should be able to do this out of the box.

Release or Environment

Madrid Patch 4

Cause

Client Script restricting users to close.

Resolution


[code]Steps to Reproduce: [/code]
1. In the environment, Impersonate user with Major Incident Management role.
2. Navigate to an open Major Incident
3. Attempt to change the state to Close.

[code]Solution Proposed: [/code]

Reason why some users are not able to close the Major Incident is because this user does not have the role: 'itil_admin'.


There is a Client Script: '(BP) Hide Choice - Closed', which has this script:
[code]


function onLoad() {
==> if (g_user.hasRole('itil_admin'))
return;

if (g_form.getValue('incident_state') != '7')
g_form.removeOption('incident_state', 7);
if (g_form.getValue('state') != '7')
g_form.removeOption('state', 7);
}


[/code]

As the user does not have this role, Closed option is not available for users.


To get a consistency for all the users with Major Incident Manager to be able to close the Major Incidents, you can modify the client script
[code]


if (g_user.hasRole('itil_admin')||('major_incident_manager'))


[/code]

Article Information

Last Updated:2019-09-19 08:47:44
Published:2019-09-19