RTC scripts are not working in 4.0.3

RTC scripts are not working in 4.0.3
We have created the script in RTC version 4.0.1 and then we have migrated to version 4.0.3.
After migration to 4.0.3 for few days the script was working fine, but now but now it’s not working at all.
Also we have observed that scripts are working fine in other project ar4.0.3 eas but are not working for our project under same version 4.0.3
e.g. – For testing – we used same script in Project A (Test Project) and Project B (affected Project area)
Please let us know how we can run the scripts, any setting do we required ?
dojo.provide("com.tssc.calculated.resource.teststatus");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
dojo.require("dojo.date.stamp"); // We need the stamp class to work with ISO date strings
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.tssc.calculated.resource.teststatus", null, {
getValue: function(attribute, workItem, configuration) {
var releaseState = workItem.getValue(WorkItemAttributes.STATE);
return releaseState;
}
});
})();
One answer

Script errors appear in the log files. The tool shows in the script editor if scripts have not been enabled (not sure since which version)
See:
https://jazz.net/library/article/1093 (lab 4)
https://jazz.net/wiki/bin/view/Main/AttributeCustomization
https://jazz.net/library/article/1360
for more information.