How to notify a group of people when creating a work item?
Hi all,
When I create a work item, I'd like to notify a group of people. What is the best way to do that? I tryed by creating a team area and associating with a category, but it did not work. When I setted the category of a work item, the team area does not received any notification. Is this possible? Thanks. |
2 answers
You would need to write a server-side plugin.
We did this based on a role at only the project level (you could probably do it anywhere). When a work item is created of a certain work item type (or any other attribute value you want to trigger on), the server-side plugin could either a) send an email using the RTC message service or b) could subscribe each person that has the specific role in the specific team area. People can configure if they get email notifications for things they are subscribed to, so using subscriptions vs email may not end up the same way. Susan Comments
LUIZ DE ALMEIDA
commented May 19 '14, 6:10 p.m.
Thank you, Susan.
Luiz, you probably want to check https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ as well and search the blog for available examples e.g. how to subscribe users to work items.
|
Arun K Sriramaiah (3.2k●2●36●77)
| answered May 20 '14, 4:33 a.m.
edited May 21 '14, 6:00 a.m. by Ralph Schoon (63.5k●3●36●46)
Hi Luiz,
1. Existing Records : - Enhancement 216962 : https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=216962 The option to send groups of people email based on actions/state changes and Already logged Enhancement on similar requirement, user can add their specific need to it. 2. Eclipse Client > Subscribe by Dragging the Team onto Quick Information Currently, Eclipse client provides one option to add a Team as subscribers to work items: In the Eclipse client > Open the Work Item > Open the Team Organization view > drag and drop a Team onto Quick Information section > You are given the option to add them as subscribers. The entire Team can them be added as subscribers. - this needs to be done for each and every work item - may need to create a team organization with Team or a subm team with set of users who would map directly to category + type. - not possible in web client. 3. Subscriptions are not available from Java Script and hence the OOTB features for Attribute Customizations cannot be used/applied to achieve this requirement. Here is a link to https://jazz.net/wiki/bin/view/Main/AttributeCustomization where it lists all the built-in attributes which are accessible through script and Subscriptions are not one among them. 4. Default Value Provider > User List can be created and subscriptions can be set to use it. However, this set of users would be the default independent of the work item type, category and/or any other parameters. This default would show up for all types and so would not be applicable for the current requirement. 5. Create Work Item Templates corresponding to each combination of Type + Category + Subsrcibers - For each user addition/removal from the subscriptions, the earlier created templates would be rendered useless After having evaluated various options, the best approach appears through a Operation Participant created using Plain Java Client Libraries 6. Using Plain Java Client Libraries its possible to add subscriptions.( with reference to the above Ralph Comment) a. Ralph provides the code to do it in his article : https://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/ b. Client can further customize it to add a control based on category and type, which are both readable using plain java client libraries. c. This could then be created as an operation participant. Here you can find a sample on creating participants : http://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ Regards, Arun. Comments Arun, the plain Java Client Libraries are client only. This is using the server SDK. See https://rsjazz.wordpress.com/2013/03/14/what-apis-are-available-for-rtc-and-what-can-you-extend/
LUIZ DE ALMEIDA
commented May 20 '14, 12:56 p.m.
Arun and Ralph,
Arun's links are
|
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.
Comments
Ssdly there is nothing builtin to do this.