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

Setting value to a readonly attribute using :Calculated Values" not working in RTC 4.0.5

We have a "Script Based Calculated Value" which sets value to a "readonly" attribute

This feature was working fine in RTC 4.0.2. After upgrading to RTC 4.0.5, the script is unable to set values to readonly attribute. Always throws error

CRRTC0299E: The work item with the ID 43215 cannot be saved because an attempt was made to change the attributes '[Task Completion Percentage]' which are not modifiable.
" [Task Completion Percentage] " is the attribute (custom)

If I make this field as writable, then the script works.

Are there any changes between 4.0.2 and 4.0.5 ?

How can I make this work in RTC 4.0.5?

0 votes


Accepted answer

Permanent link
Is the attribute itself read-only, or is the presentation in the editor read-only?  I think you would need the attribute itself to NOT be read-only but have the Editor Presentation be read-only.

I'm only on 4.0.0.1, but I have one calculated value and the attribute is not R/O but the presentation has it as R/O.

Susan
Karthik Krishnan selected this answer as the correct answer

3 votes

Comments

But having the attirbute readonly worked fine in RTC 4.0.2

Yea, I can't comment on that part of it.  I would say that there was a bug in 4.0.2 and they fixed that bug since if I say the whole attribute is read-only, then I wouldn't expect that RTC should allow programmatic changing of that attribute.

Susan

1 vote

Thanks Susan. Looks like this will work for me!

Cheers
Karthik

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
× 343

Question asked: Jan 29 '14, 5:24 a.m.

Question was seen: 5,232 times

Last updated: Jan 29 '14, 9:33 a.m.

Confirmation Cancel Confirm