Create Problem OOB UI Action on incident table

Alon Grod
Tera Expert

Hi,

I have the OOB UI Action 'Create Problem' on incident table (sys_id=2f43c471c0a8006400a07440e49924c2)
I want to give the user an option to create problem even though the incident state = closed. 
The problem is that when the user click 'create problem' when the incident is closed, it changes the status of the incident to 'on hold' but I want to that the incident will stay as closed if the state was closed. How can I achieve that in Service Operation Workspace. 


Screenshot 2023-10-10 at 16.19.18.png

 

Screenshot 2023-10-10 at 16.19.37.png

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Alon Grod 

So did you add the code in workspace client script?

where are you stuck?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar i tried to add the same code under the SOW client script but its not working. it only works in the regular Backend. can you please help me with the script for the SOW?

@Alon Grod 

you need to add logic in workspace client script section in UI action

you can use GlideAjax and create client callable script include and use code present in UI action. Remember you need to enhance it

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

but why the same script does not work in SOW but works in BE? @Ankur Bawiskar