I want to view "Watch List" tickets in the "My requests" page in employee center portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 12:18 AM
Hello Everyone,
We have a have requirement to show "Watch List" tickets for the logged in user in "My Requests" page in Employee center portal.
OOTB widget(my request) we have open, closed filter configured so I have added one more filter "Watchlist requests".
So when I click on that, it should fetch the tickets for which the user is added in watch list.
If anyone has worked on it please help me with the changes that needs to be done.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 10:15 AM
Hi @Community Alums ,
Can you please share the solution what you found. We also have a similar requirement.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 01:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 05:29 PM
Hi @Community Alums
Can you please drop the solution here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 05:29 AM
Hi Ram,
Follow the below steps
1)Clone the widget "My Requests" Id:my-requests-v2 .
Add the below lines in the HTML template of the widget to add the option to the dropdown.
<option value="watchlist">{{::data.messages.watchlist}}</option>
Refer the screenshot to know where to add the above line.
Now add the below code in the server script of the widget.
After Line 10;
msg.watchlist=gs.getMessage('WatchList Requests');
Refer the screenshot to know where to add the above line.
After Line 22;
else if (localInput && localInput.view === 'watchlist')
data.filterMsg = gs.getMessage("Search WatchList requests");
Refer the screenshot to know where to add the above line.
Add below condition after line 113 and 127 in server script in my request widget.
else if (localInput && localInput.view === 'watchlist')
x.addQuery('watch_list', 'CONTAINS',gs.getUserID());
//x will be "task" and "ritmGR".
Now open My Request Filter(request_filter.LIST) table and create a new filter as per your requirement.
Refer the below screenshot for your understanding.
After creating the filter you are good to go. It will show up in the portal.
---------------------------------------------------
Please mark it helpful if this solves your query.
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 08:22 PM
Thanks @Community Alums for the quick response.
I am not able to see the lines you mentioned in html and server side script. Below is the screenshot.
Please let me know if i am referring to wrong data.I have highlighted the widget name and the text that i am searching for.