RTC 6.0.1: How to set value of a work item field if another field has been modified ?
2 answers
Hello Narayanan,
Use calculated values to achieve this. Below is sample example.
dojo.provide("com.example.calculatedvalues");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
dojo.declare("com.example.calculatedvalues", null, {
getValue: function(attribute, workItem, configuration) {
var url = "String to add to other attribute (Filed)";
return (url);
}
});
})();
Once the script is done, Goto Types and Attributes.
-> Select a work item type which work items require this script.
-> Select an attribute where you want change and add calculated script.
- Manju
Hi,
please work through this Calculated Value example for work item customization. You will have to write a little JavaScript of your own.
If this works for you please mark this accepted.
- Arne