Is a Default Value or Calculated Value script supported for Subscribers attribute?
![]()
I need to automatically add contributors to the subscribers attribute. But, it can only be for certain types of work items, under certain conditions, in certain projects. I have similar scripts for other built in attributes, but need some information on how to handle a user list with scripting, which I can't find. Is this supported?
|
One answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Feb 03 '13, 4:07 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Feb 03 '13, 4:23 p.m.
Daniel,
The Subscribers (similar to Attachments and Links) is not an attribute, as far as I can tell. It actualy is a collection of objects, at least from an API perspective. So, as far as I can tell, you can not modify the subscribers in JavaScript. You can find more information in https://jazz.net/library/article/1093, which includes references to the Wiki article about javaScript based customization. In that page, as far as I can tell, is no attribute ID for the subscribers.
You could manipulate subscribers in a Participent, similar to using the client API used in https://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/. Other posts there show examples for Participants and links to the Extensions Workshop to learn how to set up your environment.
Comments Ralph,
|