Welcome to the Jazz Community Forum
How to read the list of users with a specific role added to a project area using java script ?

One answer

Hi Prasad,
This forum post has information about accessing users by role using javascript: https://jazz.net/forum/questions/97599/how-to-use-javascript-api-to-get-all-the-users-idaccounts-in-an-role-by-the-role-name. Depending on what you're trying to do, using Role Based User Lists may work for you: https://jazz.net/help-dev/clm/index.jsp?topic=%2F%2Fcom.ibm.team.workitem.doc%2Ftopics%2Ft_configuring_role_based_user_list.html.
This forum post has information about accessing users by role using javascript: https://jazz.net/forum/questions/97599/how-to-use-javascript-api-to-get-all-the-users-idaccounts-in-an-role-by-the-role-name. Depending on what you're trying to do, using Role Based User Lists may work for you: https://jazz.net/help-dev/clm/index.jsp?topic=%2F%2Fcom.ibm.team.workitem.doc%2Ftopics%2Ft_configuring_role_based_user_list.html.
Comments
Millard Ellingsworth
FORUM ADMINISTRATOR / JAZZ DEVELOPER Jan 09 '13, 9:41 p.m.Hi, Prasad.
Prasad Annamdasu
Jan 10 '13, 1:06 a.m.Hi Millard,
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 10 '13, 1:13 a.m.That is definitely not supported with JavaScript. See http://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ for a potential solution. The Participant creates an approval with approves having a specific role. You could use a similar approach to add subscribers.