Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to capture change event of TeamArea member or project area member.

I want to capture the change of TeamArea member or project area member using java plain api. If a member was added into project area/team area or  deleted from project area/team area, if any event or url is provided to us.

As I know, the change of component can be get changes from URL like below:

feedUrl = rootUri + "/service/com.ibm.team.repository.common.internal.IFeedService?itemType=com.ibm.team.scm.Component";

I want to know if any event or url link I can capture the change of member change of TeamArea or ProjectArea. How to be notified?

Please give me some advise or example.

0 votes



2 answers

Permanent link
There is a event of category com.ibm.team.process.service.membershipChanged published when the membership on the team area or project area changes. You can pass this to the IFeedService to fetch this type of events as a feed. 
feedUrl = rootUri + "/service/com.ibm.team.repository.common.internal.IFeedService?category=com.ibm.team.process.service.membershipChanged";

1 vote

Comments

Thks your advise.

But I found the xml data returned not enough for me. The data only contain info membership has changed in process area, but not  tell me which member was deleted or added into process area.

for example:

the data from below url:

feedUrl = rootUri + "/service/com.ibm.team.repository.common.internal.IFeedService?itemType=com.ibm.team.scm.Component";

I can found the data

<category term="com.ibm.team.scm.eventCategory.newComponent" /> indicate a new Component was created

<category term="com.ibm.team.scm.eventCategory.component.name" /> indicate a component name was renamed.

<category term="com.ibm.team.scm.eventCategory.component.owner" /> indicate a component owner was changed.

I can handle component according to the above category.

I want to get more membership changed information of project area/team area, just like add/remove action and which member was added/removed into project area/team area. 


Permanent link
Any one can give me more advise?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: Nov 25 '13, 10:57 p.m.

Question was seen: 5,683 times

Last updated: Dec 03 '13, 11:48 a.m.

Confirmation Cancel Confirm