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

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

0 votes

Comments

I don't understand. You want the attribute to be "read only", and now you cannot modify it - isn't it what you want?

  that is the problem the field don't have anny restriccion, in this moment the current vale is READ ONLY for "inner from atributes". an the problem is the test envionment is duplique or I thing so. other verificacion is necesary?

 add this coment: not i need the field have only read in state especific. but in the screen say the attribute is not modifiable thanks.


Be the first one to answer this question!

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

Question asked: Jan 29 '16, 5:59 p.m.

Question was seen: 2,431 times

Last updated: Feb 01 '16, 10:56 a.m.

Confirmation Cancel Confirm