Filtering the Request (My Tickets) to only the caller and any open work orders in their location
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:30 AM - edited 06-20-2023 11:31 AM
Hello,
I am trying to modify the MY Tickets Widget filter to only show open work orders that belong to the opened_by and the opened_by location. So if a user creates a work order , I want them to see their own work orders including any open work order in there specific location. I have not been able to accomplish this. I need assistance please .
I have attached a screenshot.
This is what I have and its showing me all open work orders from the user in the caller field of the work order. I need to see all work orders from the user's location too.
active=true^caller= javascript:gs.getUser()
Thanking you in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 12:02 PM
Hi @Rhonda9
Add below filter
active=true^caller=javascript: gs.getUserID()^ORlocation=javascript: gs.getUser().getRecord().getValue('location');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 12:10 PM
Thank you for your response but the filter is not working. There is no work orders showing now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 12:13 PM
Can you validate if there is location field on work order table and what is its backend name
Also can you share image of filter applied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 12:21 PM