Service Operation workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 11:15 PM
Hi everyone,
I need help with the Service Operation Workspace. There's an option called "Create Request" in the incident form. When I click this function, I'm redirected to the catalog page where I can raise a request. After raising the request, the request number gets linked to the incident in the related records.
The form action "Create Request" on the incident form in SOW comes from the "Incident Management for Service Operations" plugin.
Link to system-built UI:
/sys_declarative_action_assignment.do?sys_id=650cc0dc77620210c9ee78dabd5a99b7&sysparm_view=form_action&sysparm_record_target=sys_declarative_action_assignment&sysparm_record_row=1&sysparm_record_list=model%3D360935e9534723003eddddeeff7b127d%5Eform_position%3Daction_bar%5Esys_idSTARTSWITH650cc0dc77620210c9ee78dabd5a99b7%5EORDERBYDESCsys_created_on&sysparm
I want to customize this so that the incident gets canceled with a note stating that a request has been created for this incident.
Here is the current code:
function onClick() { var result = g_form.submit('sysverb_ws_save'); if (!result) { // failed form submission return; } result.then(function() { var params = {}; params.sysparm_parent_table = "incident"; params.sysparm_parent_sys_id = g_form.getUniqueValue(); g_service_catalog.openCatalogItem('sc_cat_item', '-1', params); }); }
No matter how much I try to edit the script to mark the incident as canceled, I am unable to achieve this. Can anyone please help?
This action is specifically for the Service Operation Workspace.