Skip to main content
New Participant
Feb 22, 2022 7:11 PM UTC
Question

Filter to only show tasks assigned to groups which a user is a member of

I have a requirement to have my read only grid which is populating from a process report only show the tasks for groups which a user is a member of (located in column c2).

I have tried using a filter with isLoggedInUserMemberOfGroup(LoggedInUser(),fv!row.c2) but this yeilds an improperly scoped variable. Please assist.

    5 replies

    stefanhelzle0001
    Brainy
    Feb 22, 2022 7:23 PM UTC

    Why not just use a user context task report?

    New Participant
    Feb 22, 2022 7:35 PM UTC

    Because we need this to be a process report so it can be fed by multiple process models. so the filtering must be done at the interface level. 

    stefanhelzle0001
    Brainy
    Feb 22, 2022 7:46 PM UTC

    I solve this by using a user context report and then filter by the process models. I add a column for the process model UUID, then create a constant holding all the UUIDs I need.

    gopalk2865
    Participating Frequently
    Feb 23, 2022 3:17 AM UTC

    Hi , why don't you handle this in local variable or in a expression rule. Try to filter the data in local variable itself then feed this data into grid.

    harshitb6843
    Brainy
    Feb 23, 2022 6:49 AM UTC

    Hi there, 

    You can use this function - getgroupsformemberuser()
    Then pass the output as filter in the queryRule