RTC Script output to the Discussions thread
Hi, Has anyone design a script that can output to the Disucssion / comments section in RTC? I'm trying to review the change of a enumeration and then auto populate the Comments with a Message/s. Depending on what the Literal Value is for the enumeration. It's to help with auto emails... I can do this for a HMTL attirbute but that gets complicated when it sends out the emails for the Changes? Thanks
Matt Muller |
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Oct 12 '15, 4:37 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I don't think you can do that.
This is the list of attributes supported for access: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Accessing_built_in_attributes_of It does not contain any of the complex values that are actually not simple attributes, but collections. I would not expect this to work either. From my experience you can not access any of those complex vales. Creating a comment is not just changing the value of an attribute, it is creating a new comment object and then add that to the comments collection. The provider just returns some text and there is no internal API, that would create a new comment. It also does not make sense from my perspective, to spam your work item with calculated data to enforce e-mail notifications. There are other ways to achieve this. One way would be a server follow up action, that detects the change in the save and notifies the user. Another way would be to use a asynchronous task to do this. Comments
Matt Muller
commented Oct 12 '15, 8:37 a.m.
Hi Ralph, Thanks - I sort of expected that; Do you have any examples of Server follow up actions - I guess that's another level of configuration. "One way would be a server follow up action, that detects the change in the save and notifies the user." Thanks Matt It is a completely different beast. Start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/
|
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.