Passing parameters to the dynamic filter in reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 12:19 PM
Hi There,
I am trying to create a new dynamic filter in reports just similar to the OOB filter 'One of my groups'.
One of My groups: It returns the all the groups where logged in user is a member.
Similar to it i want to build a dynamic filter 'User groups'
User Groups: It should return the groups of the given users.
Is it possible to input an user and get his groups through dynamic filter.Can somebody please let me know how can i do this?
Many thanks in advance.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 12:23 PM
you can use groups in one of javascript: gs.getUser().getUserByID('put the user name here').getMyGroups().toArray().join();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 01:08 PM
Thanks a lot for your reply Abhinay.
Actually we need to expose this functionality to itil users to report on task records. ITIL users cant use java script directly(they will confuse).That is why i am trying to add a dynamic filter 'User Groups', but i did not understand where to input the user to dynamic filter such that i can return his/her groups.
Is it possible to simplify ' javascript: gs.getUser().getUserByID('put the user name here').getMyGroups().toArray().join();' into a dynamic filter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 01:07 PM
Thanks a lot for your reply Abhinay.
Actually we need to expose this functionality to itil users to report on task records. ITIL users cant use java script directly(they will confuse).That is why i am trying to add a dynamic filter 'User Groups', but i did not understand where to input the user to dynamic filter such that i can return his/her groups.
Is it possible to simplify ' javascript: gs.getUser().getUserByID('put the user name here').getMyGroups().toArray().join();' into a dynamic filter?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2016 01:21 PM
You could use dynamic filters, but you cannot pass input parameters