Hey guys,
In my Application have the all users Group, with in it, supervisors and developers group.
I also have a datatype with input name assignTo as type text or user.
I created an interface with a rule input, i want to able to assign a task to a developer and supervisors and show the task and show two readonly grids with supervisors and developers with the assignTo task was created.
I think i need to use a filter for the all users group and filter the developers group and supervisors group. The problem is how do i make sure i get the right data from the assignTo rule input.
Here are my localvariables in my interface:
local!userDevelopers: if( a!isNullOrEmpty(a!groupsByName("TEST Developers")), null, { a!groupMembers( group: a!groupsByName("TEST Developers"), memberType: "USER" ).data } ), local!userSupervisors: if( a!isNullOrEmpty(a!groupsByName("TEST Supervisors")), null, { a!groupMembers( group: a!groupsByName("TEST Supervisors"), memberType: "USER" ).data } ), local!usersData: a!forEach( items: {local!userDevelopers, local!userSupervisors}, expression: a!map( userFullName: rule!DAP_DR_UserFullName(fv!item), email: user(fv!item, "email"), ) ),
Discussion posts and replies are publicly visible
First, I recommend to reference groups using constants, but not a!groupsByName. The you can also remove your null check.
So you want to show the users which are members of both groups? Try this:
intersection(local!userDevelopers, local!userSupervisors)
Thank you for your tips! i will use the constant!
Yes but the problem is i want to show the users i assign to for a specifiek TASK.
using: intersection(local!userDevelopers, local!userSupervisors). shows all group members from all task.
i have a cdt to create a task you assign a user to the task. but i want to filter the two groups (local!userDevelopers, local!userSupervisors) from the task in a readonly grid.
Thank you again!
I do not understand what you are trying to do. The following is guesswork ...
A task in Appian is defined by a User Input Task node in a Process Model. There you define the assignees.
To display assigned tasks in a grid, you use Process Analytics.
docs.appian.com/.../recipe-display-a-users-tasks-in-a-grid-with-task-links.html