Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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 ?

 

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;

 }

  });

})();

0 votes



One answer

Permanent link
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.

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 42
× 13

Question asked: Feb 24 '15, 2:12 a.m.

Question was seen: 4,273 times

Last updated: Feb 24 '15, 2:50 a.m.

Confirmation Cancel Confirm