client script in catalog task works in native view but not in workspace view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2024 05:27 AM
we have a catalog where the variable should be updated only when closing a catalog task. Hence we created a client script in sc task table. This work perfectly fine in native view of the ticket, but it doesn't show the variable mandatory in workspace view. In client script, isolate script is also checked.
what could be the reason.?
Onchange client script:
field name:state
script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2024 05:30 AM - edited ‎06-27-2024 05:32 AM
What is the uI type on the client script? Make sure it is set to All.
Also make sure it is Global. (Global checkbox is set to true). If this is not true then it means that this Client script is set to work in a particular View Only (workspace is a different view)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2024 05:35 AM
@Anurag Tripathi UI Type "All" is set as well. I tried having it in global and also tried with sow view. It doesn't reflect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2024 05:36 AM - edited ‎06-27-2024 05:37 AM
Comment all code and just throw an alert, see if you get that.
And if you do, then start uncommenting code in blocks to debug where is the issue.
Add comment in if and else blocks and see if any getting executed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2024 05:42 AM
I uploaded Screenshot follow that uncheck Global and view option will be visible and enter the workspace view name on the view field