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

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

0 votes



One answer

Permanent link
Did you do all of the steps as shown in the video you referenced? Configuring the operational behavior to leverage the script against the desired attribute is the critical part to get the read-onlyness.

0 votes

Your answer

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
× 6,121

Question asked: Dec 26 '13, 7:58 a.m.

Question was seen: 5,780 times

Last updated: Dec 31 '13, 2:42 p.m.

Related questions
Confirmation Cancel Confirm