It's all about the answers!

Ask a question

RTC scripts are not working in 4.0.3


Tushar Tarhane (133) | asked Feb 24 '15, 2:12 a.m.

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 ?

 

script is

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



permanent link
Ralph Schoon (63.1k33645) | answered Feb 24 '15, 2:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Since its first appearance the JavaScript attribute customization had to be enabled in the advanced properties of the server.
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.

Your answer


Register or 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.