It's all about the answers!

Ask a question

RTC Attribute Customization debugging


Brett Shegogue (132) | asked Aug 02 '18, 11:24 a.m.

 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;
    }
  });
})();


Accepted answer


permanent link
Ralph Schoon (63.5k33646) | answered Aug 02 '18, 11:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

Brett Shegogue selected this answer as the correct answer

Comments
1
Brett Shegogue commented Aug 02 '18, 3:57 p.m.

Thanks Ralph! I failed to setup the Operational Behavior

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.