It's all about the answers!

Ask a question

add subscriber following work item category/team area


Roger Layani (5313038) | asked Jan 14 '13, 11:30 a.m.

Hi

I want to create a follow-up action:

add a pre-defined subscriber depending on work item selected category /(associated team area)

someone can help me about server side code:

get team area/category from the w\ork item instance during his creation?

One answer



permanent link
Ralph Schoon (61.4k33643) | answered Jan 14 '13, 12:00 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Here is an example that does create an approval and also looks into categories: http://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ this shows how to use the subsciptions api, however, honestly the API on the server should look very similar and fit right into the code above: http://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/

Comments
Ralph Schoon commented Jan 15 '13, 2:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I should have said, the code above finds the users by roles in the process area associated to the work item (which is determined by the category's association to the team area).

In addition I think that subscribing all the users of a team is a bad practice really and I would rather suggest the team to set up the team feed and have a good feed reader installed locally. That way the users will still be able to find some other mail in their in box.

Your answer


Register or to post your answer.