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
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
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/
There are several follow up actions (participants) in that blog. There is none for sending mail. See https://jorgediazblog.wordpress.com/2013/06/28/rtc-custom-scheduled-async-task-example-explained/ for how to send messages.