It's all about the answers!

Ask a question

Can we have dependency attribute for subscribers attribute

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


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 (62.0k33643) | answered Oct 29 '14, 6:02 a.m.
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 for how a participant could look like. See 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 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.