- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2022 01:47 AM
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-
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2023 04:09 AM
bro he is asking about this:
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');
how are these configure,CURRENT_CLOSE_NOTES,CURRENT_CLOSE_CODE because m also facing the same issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-29-2022 12:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2023 12:21 AM
Hello @praveen43
How you add the overview and findings fields on the Incident Workbench when click on resolve button?
I am having same requirement so please let me know.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 06:43 AM
Hi @Pratiksha2 ,
Sorry I missed the message. Yes I added it.