Why does the age calculation script not working?
![]()
Maria Amalan (78●37●59)
| asked Mar 28 '14, 12:29 a.m.
edited Mar 28 '14, 11:19 a.m. by Stephanie Taylor (241●1●5)
I have followed the steps given in the below article to calculate age of defect. But even though all steps have been followed, the age is not getting calculated. I am using RTC 3.0.1.2. Is there some step that is missing in this article that I should be doing?
https://jazz.net/library/article/1003#calc-values
Someone please help! Thanks!
|
2 answers
![]()
Also this document how to troubleshot calculated values should be useful: https://jazz.net/library/article/1360
Let us know if it helped. |
![]()
the return values from the script you are trying to use is of the form "2 d, 20 hr, 34 min" which is best suited for a string attribute.
so, please verify if the ItemAge attribute which uses the script is of type string (small/medium/large - any is fine). i have just verified using the script from https://jazz.net/library/article/1003#calc-values and observe that a. when its applied on a TimeStamp attribute, the value remains at "None" - no change observed due to the execution of the script b. when applied on a small string attribute, the value shows up correctly and is of the form "2 d, 20 hr, 34 min" hope this helps Comments Thanks for this info Dinesh.
could you check if the Enable Process Attachment Scripts property is set to true?
Thanks Dinesh.
Enable Process Attachment Scripts property was set to false. I have now changed it to true and redone the whole setup. The script that I am using is a tried and tested bit of code from the below link. I believe the age has to appear every time we modify the defect. But no value appears when I modify the defect. I don't think there is any syntax error because its a published function. What else could be the reason?
do you find the script loading successfully on the firefox firebug script console!
|
Comments
Hi Maria,
What do you mean that it is not calculated? Does it still has value 0? Do you have any error in ccm.log or in application server log?