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

Passing values from children to parent workitem

 Hi, I have a field named "Health" which accepts values "Green, Yellow & Red". In my example we have an EPIC workitem and it is set as a 'Parent' to 3 userstory workitems. When any of the userstory workitem's health is changed to "Red", Is there a way we can change the Parent workitem's health field value to "Red" ? Can this be achived through "Calculated Value" field ?

0 votes



One answer

Permanent link
I don't know how the parent work item should know that the value in the child work item changed to trigger a calculated value. In principle you could create a Java based Calculated value provider that looks at linked work items. Note: JavaScript does not work. See https://jazz.net/forum/questions/213678/accessing-child-workitem-attribute-in-dojo-acript-in-attribute-customization/213681


One valid way I am aware of is described in https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ . you could use a similar logic to set the attribute at the parent(s) to red.


0 votes

Comments

 Thanks Ralph. I would try that. Does this work only for work items linked as parent-child ? Or should this work even if work items are linked as "Related" ?

Related is just a different link type to follow. On the other hand you can introduce loops with related links and would have to make sure your extension does not recurse the server into oblivion.

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,125

Question asked: Jan 08 '16, 10:46 a.m.

Question was seen: 2,930 times

Last updated: Jan 13 '16, 2:09 a.m.

Confirmation Cancel Confirm