ESC Portal: How to enable the "Reopen" button to all users without having to clone the widget?

Elton2
Tera Contributor

Hy everyone, how are you?!

 

When the user opens an INC using the Employee Center Portal and when this INC is "Resolved" by the Resolving Agent in the Backend, there should be a "Reopen" option in the Portal (img1_option_reopen).

 

However, I looked at some information here in the Community and this "Reopen" option will only appear
if the user DOES NOT have any role, I tested it and this does indeed happen (img2_user_without_role).

 

They even suggested commenting out line 41 of the "incident-standard-ticket-actions" Widget (img3_line_41), but
I can't do that, because we need to use everything OOTB.

 

I would like to know if there is any other way to enable this "Reopen" option for all users (or only ITIL)? Using OOTB?

 

Thank you very much! 😉

1 ACCEPTED SOLUTION

Robert H
Mega Sage

Hello @Elton2 ,

 

The default behavior is that, if an Incident is in the Resolved state, then the users in the "Opened by" and "Caller" fields will be able to Reopen it, no matter if they have a role or not.

 

Here is the code that is being called in line #41 of the "Incident Standard Ticket Actions" widget (it can be found in the "IncidentUtilsSNC" Script Include):

RobertH_0-1743608758218.png

 

So isn't the default behavior exactly what you want? Or do you want to make the "Reopen" button available to "all users" (as stated in the title of your post), meaning any user could Reopen any other user's Incidents?

 

In any case, you achieve whatever requirement you have without cloning this widget. All you would need to do is to override the "canReopenIncident()" method, by putting a method with the same name in the "IncidentUtils" Script Include (not the one mentioned above ending with SNC). 

 

Regards,

Robert

 

View solution in original post

11 REPLIES 11

Hi @Ankur Bawiskar , how are you?!

 

Sorry for the delay!!!

 

Yes! For a user with the ITIL Role to access the "Reopen" button via Portal, it is necessary to customize the include script "(IncidentUtilsSNC)".

 

Thanks for your support and attention!

Best regards, 

@Elton2 

I am good thank you.

Hope you are doing good.

Thank you for marking my response as helpful.

If my response helped please mark it correct as well so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader