Customization Attribute
2 answers
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
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");
(function() {
dojo.declare("com.example.ValueProvider", null, {
getValue: function(attribute, workItem, configuration) { var result= 5788;
return result;
}
});
})();
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?
What version of RTC did you try with?
I can see the custom attribute value set to 5788 using your above script.
What I did is:
. Create a new calculated value attribute called Test and point the above script in Eclipse client
. In "Types and Attributes", under task, create a new string type of attribute: test
and see calculated value as Test
. In Task's workitem editor presentations's overview tab, add new presentation and select test, set kind as string, save it
. Create a new task work item and see 5788 is set to test.
Did you do the same and see the value set to 0 instead of 5788?
Comments
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.
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.
1 vote