Automatically subscribed based on custom field
Is there a way to add subscribers automatically to a workitem based on entries on particular "Contributer" type field?
I mean this is done by default for the "Created by" and "Owned by" fields of the workitem but I would like to extend this also to other custom fields like "Customer responsible" field (type contributor). Chosen person should be automatically subscribed to the workitem.
Does anyone know how can I manage this?
RTC version 4.0.7.
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 30 '15, 10:07 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I think this only practical in a Java Server extension.
Create a follow up action like https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ and replace the approval part with subscribing. The Java API for subscriptions is https://rsjazz.wordpress.com/2012/08/02/subscribing-to-a-work-item-using-the-java-api/ it is very similar on the server. Reading attribute values is explained in https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/ and in the server this is an example: https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ |
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.