Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to add the dropdown 'Escalate' in the Actions button of incident in portal ?

Thej1
Tera Expert

HI,

 

How to add the dropdown 'Escalate' in the Actions button of incident in portal ?

Thej1_0-1721975080582.png

 

Thanks

@Community Alums @Dr Atul G- LNG @Clara Lemos @Pradeep Sharma @Ratnakar7 Yashsvi

 

4 REPLIES 4

Nicholas_Gann
Mega Guru

You would need to get the code that is currently used for 'Escalate' and populate it in the widget. This isn't too difficult provided you're comfortable with scripting

 

Navigate to the record here:

/ticket_configuration_list.do?sysparm_query=table%3Dincident&sysparm_view=

Load up the record and check the Widget populated in the 'Action Widget' field. If it hasn't been customised it will be:

/nav_to.do?uri=sp_widget.do?sys_id=9bd06ce173070010cbb654eb7df6a7d4

 

You will need to make a few changes to the widget.....

 

Nicholas_Gann_1-1721984571992.png

 

In the above code, where the yellow highlighting is you will need to mimic the entries in the other <li> entries and update the parts highlighted green

 

You then need to update the server script and add a new section were the yellow is to use the code for Escalate

 

Nicholas_Gann_3-1721985057640.png

You then need to update the Client controller adding a new elements where the yellow highlighting is and replace the references where the green is:

 

Nicholas_Gann_2-1721984786211.png

 

HI,

 

I did the changes as you said and also added in the script include 'IncidentUtils'. but still it is not working.

Please find the below screenshot.

Thej1_0-1721988441566.png

 

Thanks

 

This could be failing for any number of reasons, so it might be difficult to diagnose on here. Can you provide code snippets of the HTML, server and client fields on the widget and verify that the widget being updated is the same one referenced in the Ticket configuration record?

 

The widget i linked to above is showing as read only for me on a PDI, so I assume you've either cloned the widget as part of this work or it was cloned previously, so that new widget should be the one referenced on the Ticket configuration record

 

The code you've shown above looks fine provided you wanted the Escalate action to appear in the same scenarios as Reopen

 

I missed out a bit of code that needed modifying above. Have you made the changes to the snippet below as well?

Nicholas_Gann_0-1721990323637.png

This would prevent the action appearing as data.canEscalate(making the assumption on the name) needs to be true for the option to appear

HI,

 

I missed a line in client controller. Added and now it i working.

Now the Escalate button should appear in states New, In Progress, On Hold (but only if it is NOT awaiting customer) and as requested only after 14 days.

 

Thanks