It's all about the answers!

Ask a question

How to get the value of a custom attribute in RTC 3.0.1.3


1
2
Alicia McPherson (7131418) | asked Jun 07 '12, 2:26 p.m.
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 error:

Error executing script myfilename.js

Thanks!
Alicia

2 answers



permanent link
Mathieu Defianas (15942838) | answered Jun 19 '12, 9:28 a.m.
Hello Alicia,
I have the same code and it works for me !!!

So, I think you have perhaps an error in the ID of your parameter in the Process Configuration Source ...

Or you have forgotten to put to true the boolean "Enable Process Attachment Scripts" in the part "Work Item Component" of the "advanced properties" in the admin ccm web site.

Regards
Mathieu

Comments
Alicia McPherson commented Jun 19 '12, 3:53 p.m.

Thanks Mathieu! I was able to get it to work last week. Thanks again!


permanent link
Ralph Schoon (63.1k33646) | answered Jun 19 '12, 3:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Alicia,

have you switched the scripting on in the CCM advanced attributes?

Comments
Alicia McPherson commented Jun 19 '12, 3:54 p.m.

Thanks Ralph! I finally got it to work last week.

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.