RTC Attribute Customization debugging
I have taken over for a former employee who setup most of the RTC System. He had previously created an Attribute customization and it works. I am trying to create a new attribute but can't seem to debug it. I even "dumbed" it down to try and get some output to the console, but I'm getting nothing in Chrome other than that it finds frbapproved.js. I tried to put some breakpoints in the javascript but I get nothing.
dojo.provide("org.example.workitems.providers.frbTest");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("org.example.workitems.providers.frbTest", null, {
matches: function(workItem, configuration) {
console.log("TEST123");
var frb = workItem.getValue("com.ibm.team.workitem.attribute.frbapproved");
console.log("FRB Value" + frb);
return true;
}
});
})();
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("org.example.workitems.providers.frbTest", null, {
matches: function(workItem, configuration) {
console.log("TEST123");
var frb = workItem.getValue("com.ibm.team.workitem.attribute.frbapproved");
console.log("FRB Value" + frb);
return true;
}
});
})();
Accepted answer
You created a condition. It might be that you can not debug it in the JavaScript Debugger, because
- You did not configure the operational behavior
- The code is so broken that it not even loads
There is a special log you want to look at. Please see some tips in this workshop:
Chrome has worked best for me when debugging.