Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

How to get the list of subscribers in a particular workitem

Hi All,

I would like to get a list of subscribers pertaining to the workitem in RTC either script code or serverside code.

Thanks in Advance.
Govindaraj.

0 votes



2 answers

Permanent link
https://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/ shows how to get the subscriptions as part.

0 votes

Comments

Hi Ralph,

The link which you have given is showing how to add the subscriber programmatically instead of how we can check the number of subscribers count. Please let me know, how to get the number of subscriber list.

Regards.

Govindaraj.

It shows how to get the subscribers in the line before it add a new one. If you want to be able to extend RTC you should be able to work with blogs like that and read the code.


Permanent link

  IWorkItem workitem = workitemClient.findWorkItemById(id, IWorkItem.FULL_PROFILE, null);

  
    for(IContributorHandle subscriber : workitem.getSubscriptions().getContents())
    {
    IItemManager itemManager = repo.itemManager();
    IContributor contributor = (IContributor) itemManager.fetchCompleteItem(subscriber , IItemManager.DEFAULT, monitor );
     contributor.getName(); //-----> Subscriber's name
      contributor.getEmailAddress(); //------> Subsciber's Mail Id
    }

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,992

Question asked: Jun 13 '16, 7:52 a.m.

Question was seen: 3,077 times

Last updated: Jul 09 '19, 5:30 a.m.

Confirmation Cancel Confirm