IProcessArea.addMember() and IProcessArea.addRoleAssignments abnormal result
Hi.
After I removed all the members in the IProcessArea, I tried to add them back.
So I iterated to add each member back by calling IProcessArea.addMember().
But the result is weird. The roles of member is not empty. Some roles are assigned to this member instead.
Are roles cached somewhere?
When I called IProcessArea.addRoleAssignments(), the result is not like I thought.
I want to add role A to John. But in the end, John has no role.
The history shows John has been assigned A and A has been removed at the same time.
(It's because John has been assigned A since IProcessArea.addMember())
But there is another problem. Why IProcessArea.addRoleAssignments() removed roles from members?
I then use IProcessArea.setRoleAssignments() to solve this problem instead.
Am I misunderstanding the API document?
Thanks!
7 answers
I do save the process area after I remove the members.
I even tried remove members on the website instead using api.
But the result is the same.
(I used version 4.0.2 API)
in my history I see , this is 4.0.6
just added new user to system and
Change by sam (Jun 23, 2014 4:47 PM)
Members |
added:
sam |
Role assignments |
sam
added:
Team Member Stakeholder Scrum Master Product Owner |
Change by sam (Dec 10, 2014 9:48 PM)
Members |
added:
tom |
Role assignments |
tom
added:
Scrum Master Team Member |
Below are the results after addMember and addRoleAssignment, where the first one "Remove a role". (4.0.2)
Change by admin (2014/12/9 下午3:54)
|
||
Change by admin (2014/12/9 下午3:54)
|
Below is the right result. (4.0.2)
Change by admin (2014/12/9 下午3:54)
Role assignments |
royce
added:
Reviewer |
Change by admin (2014/12/9 下午3:54)
Below does not show "role assignment" history. (4.0.2) |
||
Change by admin (2014/12/9 下午3:54)
|
The results are from the same code and during the same execution.