- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:15 AM
I am trying to create a dynamic filter for user reference field. It is meant to fetch a manager's reportees. I have written a script include for that and then called the function in the dynamic filter. Although, it does not seem to be working. I have tried adding sys logs but nothing gets captured.
When I use the filter, Assigned to filters down the empty. I have a feeling that the return statement isn't correct.
FYI, I am trying to use that filter in the below variable.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:27 AM
I don't think you need a script include for this. You can just dot walk assigned_to.manager is (dynamic) Me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:21 AM
Try changing your return to:
manager + "=" + gr.sys_id

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:27 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:29 AM
Please correct me if my understanding is wrong.
your use case is, when any user opens incident list, you want to show incidents assigned users who reports to him/her. If this is use case then you can directly set condition as assigned to.manager isDynamic me
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2019 06:49 AM
Hi
Try this in Dynamic Filter Options
Script :
new MyReportees().reporteesName();
or
gs.include('MyReportees');new MyReportees().reporteesName();
and return
manager + "=" + gr.sys_id
Mark it correct/helpful if it helps you
Regards,
Vaibhav Chaudhari