Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

1

1 vote



One answer

Permanent link
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.

0 votes

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.

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 12 '15, 3:26 a.m.

Question was seen: 2,649 times

Last updated: Oct 12 '15, 8:39 a.m.

Confirmation Cancel Confirm