The attribute is not modifiable RTC
Hi i have a problem in operation behavior configure "for element work" READ ONLY FOR CONDICION. But RTC say's
in the test envionment work fine HELPME!! tks
RTC VER 5.0.2
this is the javascript.
dojo.provide("net.jazz.example.readonlyplanestimacion.Condition");
dojo.require("dojo.date");
dojo.require("dojo.date.stamp");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("net.jazz.example.readonlyplanestimacion.Condition", null, {
matches: function(workItem, configuration){
var lastmodify = workItem.getValue(com.ibm.team.workitem.api.common.WorkItemAttributes.MODIFIED);
datefinal = new Date(lastmodify);
dateini = new Date(new Date());
var diffHours = (((dateini - datefinal) / (1000 * 60 * 60)).toFixed(1));
var state = workItem.getValue(com.ibm.team.workitem.api.common.WorkItemAttributes.STATE);
var actualValue = workItem.getValue("rm_tiempo_plan_rms");
if(state == "com.ibm.team.workflow.rm.state.s2" && actualValue != null && diffHours>48){
return true;
}else{
return false;
}
}
});
})();
Comments
Donald Nong
Jan 31 '16, 6:32 p.m.Andres Felipe Gallego
Feb 01 '16, 10:51 a.m.Andres Felipe Gallego
Feb 01 '16, 10:56 a.m.