Assign the task to group except the Logged in user

Hi,

I want to assign the user input task to the "XYZ" group except the user who submitted( this user also belongs to same group).

 

How can we achieve this?

  Discussion posts and replies are publicly visible

Parents
  • Hi,

    Firstly you can create a rule which will remove the logged in user from the group:

    with(
    local!users: getdistinctusers(
    peopleArray: ri!group /* Group*/
    ),
    local!loggedInUser:loggedInUser(),
    local!newUsers_usr:remove(
    local!users,
    wherecontains(
    local!loggedInUser,
    local!users
    )
    ),
    local!newUsers_usr
    )

    You can directly either assign the task to output of the rule otherwise generate a temporary group in the process of this users.
Reply
  • Hi,

    Firstly you can create a rule which will remove the logged in user from the group:

    with(
    local!users: getdistinctusers(
    peopleArray: ri!group /* Group*/
    ),
    local!loggedInUser:loggedInUser(),
    local!newUsers_usr:remove(
    local!users,
    wherecontains(
    local!loggedInUser,
    local!users
    )
    ),
    local!newUsers_usr
    )

    You can directly either assign the task to output of the rule otherwise generate a temporary group in the process of this users.
Children