It's all about the answers!

Ask a question

Can we have dependency attribute for subscribers attribute


R Z (1273252) | asked Oct 29 '14, 5:44 a.m.

Team,

This is what i am looking for.

I have a requirement where one of the attribute is contact person- Drop Down/Enumeration, Now this information automatically populates when other attribute program is selected. (Contact name varies)

Till here it works perfectly.

Now when i save the work item for first time it is only taking the creator id and updates in  subscribers field.

This is really important as the contact person is the one who will be looking into it. Without getting his id added to subscribers list he wont be knowing the work item id.

All i need here is when i save the work item it should automatically copy the data from contact person to subscribers field.

Is it possible?

Please suggest. Any help would be highly appreciated.

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Oct 29 '14, 6:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Subscribers is a collection and not an attribute. You could create a follow up action (participant) on the server that does the subscribe for you.

See http://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ for how a participant could look like. See http://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/ for how the subscriber API looks like. The example is client API, but the API on the server should be very similar.

You would get the user ID from the attribute. See http://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/ for how to access an attribute of type contributor. You would basically have to provide your attribute ID.

Your answer


Register or 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.