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

RTC 6.0.1: How to set value of a work item field if another field has been modified ?

In RTC 6.0.1 how to set a work item field if another field has been modified ?  


I need to set the value of field Is Release Modified to Yes automatically if Release field has been modified. Please let me know the best way to implement it. 

Thanks In Advance. 

0 votes



2 answers

Permanent link

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

1 vote


Permanent link

 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

0 votes

Comments

 Thanks for the information. How do I write JavaScript  to find if a field Release has been changed.   Appreciate your help !

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

Question asked: Sep 19 '17, 1:38 p.m.

Question was seen: 3,875 times

Last updated: Sep 20 '17, 12:33 a.m.

Confirmation Cancel Confirm