Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hello,
How can I get assignee(User 1) as an attribute from a Problem Report ? Please look at attached file.
Thanks in advance.
Try this:
WTChangeActivity2 changeActivity = <get change activity object>;
Team team = (Team)changeActivity.getTeamId().getObject();
ArrayList assignees = (ArrayList)team.getRolePrincipalMap().get(Role.toRole("ASSIGNEE"));
for(Object u : assignees)
{
WTPrincipal user = (WTPrincipal)((WTPrincipalReference)u).getObject();
}
You may need to change role names if you don't use ASSIGNEE as the role.