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

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

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

1 vote



2 answers

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

1 vote

Comments

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


Permanent link
Alicia,

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

0 votes

Comments

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

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
× 6,132

Question asked: Jun 07 '12, 2:26 p.m.

Question was seen: 4,616 times

Last updated: Jun 19 '12, 3:54 p.m.

Confirmation Cancel Confirm