- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 02:35 AM
Dear Team,
This is related to a similar ask posted earlier, refer to the below URL-
Requesting help on the Filter field of the Simple list widget (screenshot highlighted section) so that it displays only those task(s) associated with a RITM when the user access Service Portal> My Requests-RITMXXXXXX.
Currently, I applied the filter 'request_itemISNOTEMPTY' filter on the sc_task table but it displays all Tasks in the instance, which is not desired.
Please help on this
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2023 05:13 PM
Hello @rishabh31 ,
So, I used the Widget "Data Table from Instance Definition" and used the "Clone Widget" UI Action
Then, in the clone, I updated the Server script to enhance my filter (in my use case, I was looking at Catalog Tasks tied to RITMs, so my script update occurred at around line 25, where I added the filter for the sys_id of the current record to the filter on the data table. I then check to see if there is a filter from the widget itself. If not, then the word "Null" would be present and I forgo adding it:
Finally, I add the widget to the page and then set the table and fields I want on the table. If you want a custom filter, you can set it due to the filter check we did on line 35 and it will append that filter here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 05:38 AM
@rishabh31 Simple list won't work in this scenario
In Standard ticket configuration
you can add new tab called Tasks configure accordingly.
Below is OOB custom one created wm_order table to get their tasks.
Similarlly you can do for Requested item as well
They used "Work order Tasks for Work Order" widget we have to create one new widget replicate same for sc_tasks.
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 06:48 AM
Terribly sorry @rishabh31 ,
I should have realized my mistake when sending you the screenshots. I had a bug in my code. On line 27 of your server script, it should read:
data.filter = "request_item=" + sys
without that "=" the filter will fail, which is what is happening. Please try that and let me know your results.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 05:38 AM
@rishabh31 Simple list won't work in this scenario
In Standard ticket configuration
you can add new tab called Tasks configure accordingly.
Below is OOB custom one created wm_order table to get their tasks.
Similarlly you can do for Requested item as well
They used "Work order Tasks for Work Order" widget we have to create one new widget replicate same for sc_tasks.
Bharath Chintala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2023 12:14 AM
Thank you @BharathChintala Sir for the proposed solution this is helpful but it requires plugin activation.