cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to get assignee in Problem Report task ?

cdurmaz
10-Marble

How to get assignee in Problem Report task ?

Hello,

How can I get assignee(User 1) as an attribute from a Problem Report ? Please look at attached file.

Thanks in advance.

1 REPLY 1
jmomber
12-Amethyst
(To:cdurmaz)

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.

Announcements

Top Tags