Customize the Resolve UI Button on incident Workbench

praveen43
Tera Expert

Hi ,

I would like to have a customized resolve button on the Incident Workbench.

I have a field Overview on the incident table. When user clicks on the resolve button on the incident workbench. I would like to populate the data that is already there on the field.

Below is the screeshot-

find_real_file.png

Here we can see that the Resolution notes is populated with the below code.

ar dialog = GlideModal.prototype.get("sn_major_inc_mgmt_mim_workbench_resolve");
var closeCodes = dialog.getPreference('CLOSE_CODES');
var currentCloseCode = dialog.getPreference('CURRENT_CLOSE_CODE');
var currentCloseNotes = dialog.getPreference('CURRENT_CLOSE_NOTES');

 

I would like to know how the above preferences are defined.

Thanks and Regards,

Praveen

1 ACCEPTED SOLUTION

praveen43
Tera Expert

Hi,

I was able to achieve this.

In Client script of the UI page - mim_workbench_resolve.

we have window.NOW.MAJOR_INCIDENT_WORKBENCH.sys_id.
This will return the sys_id of the incident.

So I created a client callable script include and passed the sys_id to get the incident fields values as a response.

View solution in original post

8 REPLIES 8

Anil Lande
Kilo Patron

Hi,

Can you please share configuration of your UI Action?

Also complete script, it would be easy to suggest changes by modifying your UI Action script.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi Anil,

It is the OOB UI Page which is called when we are click on the Resolve UI Action on the incident Workbench.

 

UI Action - Resolve

UI Page - mim_workbench_resolve

 

Thanks,
Praveen

Hi,

If you check that UI Page Client script part you can find resolutionNotes variable has been assigned the value of element 

find_real_file.png

and it is assigning that value to 

find_real_file.png

 

Check HTML part of this UI page which is modified, you need to follow same logic for Overview field in same UI Page.

 

Thanks,
Ail Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

HI,

I tried these steps. But no luck.

The steps will capture the text entered by the user after clicking the Resolve button.