It's all about the answers!

Ask a question

How to get the value of a custom attribute in RTC


Alicia McPherson (7131418) | asked Jun 07 '12, 3:01 p.m.
retagged Jun 07 '12, 3:58 p.m. by David Olsen (5237)
Hi ,

I'm using RTC 3.0.1.3. How can I get the value of a custom attribute?

I followed the tutorial on the wiki https://jazz.net/wiki/bin/view/Main/AttributeCustomization, but I'm getting an error.

I added the parameter in the Process Configuration Source

<parameters crNumberId="cr"/> // cr is the attribute id

And used the following script to get the value of the custom attribute:

var crId = configuration.getChild("parameters").getStringDefault("crNumberId", "");
      
return workItem.getValue(crId);


I got the following errors:

Error executing script myfilename.js
unable to find file: ./../.js

Thanks!
Alicia

One answer



permanent link
Ralph Schoon (63.1k33646) | answered Jun 11 '12, 9:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi, the script name in the error message looks dubious.

"Error executing script myfilename.js
unable to find file: ./../.js"

I can't remember I have seen something like this.

Please make sure that scripting is enabled in the Advanced Properties of the CCM application. If that is the case, try to upload your script again.

In general please try first with one of the examples you can download in the project area in the configuration dialog. Use console.log() to get some feedback in the server log (or the eclipse log). Once this is successful, try with your own script.


Your answer


Register or 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.