How to dynamically set a work item attributes as read-only
Hi Team,
I am trying to configure work item fields, or attributes, to be dynamically read-only based on conditions in other fields. For example, if a user selects "Release 1.0" in the "Found In" field, RTC should automatically set the "Found In Release" field to "Release 1.0.1" . Setting the "Found In Release" field automatically based on the selected "Found In" value would make the interface much more user-friendly because users would not need to provide the same information in two places and it would eliminate the possibility of having mismatched "Found In" and "Found In Release" values. I have followed the below script and it is working for default value only. Please check the below script and I gone through this link https://jazz.net/products/rational-team-concert/features/wi
===================================================
dojo.provide("custom.enum.foundinbuild");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes= com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("custom.enum.foundinbuild", null, {
matches: function(workItem, configuration) {
var state= workItem.getValue(WorkItemAttributes.FOUND_IN);
var result= state !=null;
return result;
}
});
})();
=================================================