Customization Attribute
De'Shea Bennett (1●6●6)
| asked Apr 10 '13, 6:10 p.m.
edited Apr 11 '13, 1:26 a.m. by Ralph Schoon (63.5k●3●36●46) It seems like my js script is not being taken into account for the attribute even though i have set the task attribute as a calculated value for it's value. The attribute never updates; please assist. It seems like it's holding the value of an old script. |
2 answers
If you change a fixed value in the js script, then you need to go to Calculated Value's configuration and reload the js script and save it. After that, the value should be updated.
If this is not the case, please provide the details how to implement and in which scenario you expect the value should be updated. Comments
De'Shea Bennett
commented Apr 11 '13, 11:18 a.m.
I did a reload and save and the script calculated value is still not loading the value. Below is the script:
dojo.provide("com.example.ValueProvider");
It's very simple. I just want to test a very simple script. The calculated values does not display 5788. It stays 0. When I go to "Types and Attributes" tab, the calculated value is listed for the attribute I want. Please help. Why isn't it changing the attibute value?
Don Yang
commented Apr 11 '13, 7:42 p.m.
What version of RTC did you try with?
|
Please make sure that the relevant property is set to true in advanced properties. The property name is "Enable process attachment scripts" and can be set in https://<host>:9443/ccm/admin#action=com.ibm.team.repository.admin.configureAdvanced
Comments
De'Shea Bennett
commented Apr 11 '13, 11:20 a.m.
It is. I would suggest that you reproduce the problem (save the workitem that has the custom attribute that you expect to be updated), note the exact time, and look into ccm.log (possibly also jts.log) for any errors with a matching timestamp.
1
As described in https://jazz.net/library/article/1093 Lab 5 and in https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Debugging_scripts the JavaScript related logs are not in the application (ccm, jts) log files. They are the Eclipse client and server logs. The location is described in the links above.
|
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.