Close button on ticket page in the actions section in esc portal

Luke James
Tera Contributor

Hi All, 

 

I have a requirement to hide the "Close" button on the esc portal for major incidents for any user that does not have the major incident manager role or itil role. 

 

I've attached the page to this post. 

 

Anyone know how to do this? 

 

Kind Regards, 

 

Luke

 

 

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Luke James 

 

I think it is valid to show close button, as end user is the one who confirm and can close the incident once it get resolved.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Michael_Martin
Tera Contributor

All > Portals > Widgets
The widget is called "Standard Ticket Actions"

Once you created a clone of it and added this widget in "Standard Ticket Configuration" for your ticket page, you can adjust the code to your needs.

Thanks @Michael_Martin. I have cloned the "Standard Ticket Actions" is the visibility of that action buttons controlled in this widget though or in a script include? 

 

Many Thanks, 

 

Luke

Yes. For Incidents you may have an "Incident Standard Ticket Actions" Widget.
Server script approx line 37 you'll see the canResolve, canReopen, canClose function calls from 

global.IncidentUtils()
you can add an own if routine and set the data.canClose only, if it's not a major incident, besides the canClose call from incidentutils.