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

With regard to technote 1319600 "Automatically add users as subscribers when creating new work items"

How does one get this to work with specific work item types only. I want to be able to send a notification out to my System Administrators when I create a work item type called "Configuration Changes"

However, when I folow the instructions in technnote 1319600, (http://www-01.ibm.com/support/docview.wss?uid=swg21580771) the user list I created called "OctoSysAdmin" gets added to EVER work item type.

Additionally, when you modify the attribute Subscribed By it specifically states at the bottom "Modifying a built-in attribute will affect all Work Item types in thsi project area".

I want to know how to send notification to different groups for specific groups of people for one, or more specific Work Items only (NOT ALL WORK ITEM TYPES). How can this be done?

0 votes

Comments

If you provided a link to the tech note, readers could easily follow that to see what it says.

If it uses AttributeCustomization/JavaScript, then it will apply to all work items. If it is JavaScript, then you could determine the type and then decide.



3 answers

Permanent link
Clearly in step 8 of the doc, 'select the workitem type', the author doesn't understand the impact of changing the configuration of a builtin attribute.

Ralph, as far as I know, you cannot manipulate the subscriber list via Javascript in a default or calculated value script. altho the doc, https://jazz.net/wiki/bin/view/Main/AttributeCustomization#ScriptBasedNotes,  says Default value, 'Script Based Default Any attribute type'

0 votes

Comments

Is there no way, without modifying my attributes to be able to configure a notification to a group for a specific Work Item?? Does this not seem like a common sense thing to have for a CM tool? There needs to be more separation between work items in RTC. <o:p> </o:p>

Not all Work items apply to ALL members of my Project.

I have used different CM tools that utilized Groups to be able to assign work to instead of individuals, and you could configure who received notifications for individual work items (i.e Hardware Change Requests, Software Change Requests, Defects). Additionally I could do notifications by State, so that a Software Lead could be notified when a CR was updated to a particular State. <o:p> </o:p>


Permanent link
the builtin support doesn't provide an easy way to do this. been asked for since forever.

the builtin support re-uses many attributes, because they are the same functionality across all the workitems..  some use cases, like yours, present different requirements that the builtin support does not handle.

You also cannot send mail to members of a role (by listing the role name)
etc..

you CAN create a server side plugin extension that could do this for you.. create a field, add the role name to it, then the plugin uses the role name to find the users to send mail to on each later change.  Course this only works AFTER the workitem is created.. not BECAUSE it was created. To do that you would need some configuration external to a workitem to make this work.  .

workitem 177613 opened in sept 2011, documents some of the needs.  I have proposed in that workitem, creating an open source solution to this problem, as it appears IBM will no get to it.  It seems a shame to have everyone recreate the same function over and over again

0 votes


Permanent link
Unfortunately Sam is right and JavaScript does not provide the capability to set the subscribers as far as I know.

The builtin customization support (providers and JavaScript) leaves a lot to be desired and I wish it was different. There are many requests in this area open.

So to be fully flexible today the best option is a work item save participant.

https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ modified to work against the subscription API ( https://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/ ) instead of creating an approval would do the trick.

I wish it where easier.

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

Question asked: Dec 16 '14, 10:51 a.m.

Question was seen: 4,437 times

Last updated: Dec 17 '14, 2:36 a.m.

Confirmation Cancel Confirm