Passing parameters to the dynamic filter in reports

Ashok10
Mega Expert

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.

4 REPLIES 4

Abhinay Erra
Giga Sage

you can use   groups in one of javascript: gs.getUser().getUserByID('put the user name here').getMyGroups().toArray().join();


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?


Ashok10
Mega Expert

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?


You could use dynamic filters, but you cannot pass input parameters