Widget button in service portal my request page

SAM321
Tera Contributor

Hi all so I have a task , creation of widget button on (my request page) of service portal.

The buttons are (Accept resolution) and (Reject resolution).

This buttons should be display only when incident state is resolved.

 

When clicking on “Accept Resolution” button, the incident state must be updated to Closed with an additional comments written : “Resolution accepted by the user”.

 

When clicking on Reject Resolution, a popup should be displayed with “Additional Comments” to be populated by the user. Then the incident state must be updated to “Work In Progress” and assignment group must be notified.

 

I created buttons using HTML and CSS but I have problem with client and server side script. can someone help!

 

18 REPLIES 18

RaghavSh
Kilo Patron

can you share your HTML code, the server and client will be build  on that. Accept will not require any client code but reject will require that.

Also I suppose these buttons should be visible on resolved incidents only and visible to caller only?


Raghav
MVP 2023

SAM321
Tera Contributor

@RaghavSh script is ok?

 

@SAM321 my_requests page gives you the list of your requests, for which page and which widget you exactly want these buttons, That is required because the URL will contain the sys_id of record and table name.


Raghav
MVP 2023

SAM321
Tera Contributor

@RaghavSh actually in this page we have to place 'accept resolution' and 'reject resolution' buttons..when state is resolved!