It's all about the answers!

Ask a question

How to remove inherited attribute in child workitem incase of its parent workitem has the same field mandatory & populates its value into child's attribute

Sudaraazhi Arivalagan (441628) | asked Oct 29 '14, 2:13 a.m.


Can you clarify on the below need?

I want to remove the inherited NCC attribute from the "Required Atrributes" pre-condition which has been set for the defect workitem.

What does it means inherited atrtributes? Is it inherited from Parent workitem?

In this case, NCC attribute is a mandatory field in its Parent workitem, and its value is automatically populating into child's NCC attribute.

My requirement is, NCC attribute from Child workitem should be made as non-mandatory field.

How is it be done? Kindly anyone help.....



Accepted answer

permanent link
Ralph Schoon (62.3k33643) | answered Oct 29 '14, 4:55 a.m.
edited Oct 29 '14, 4:56 a.m.
In that case Inherited means that you defined these attributes as required for all states. So they are also required in the new state. Inheritance does have nothing to do with inheriting values from a parent. We don't have a feature like that.

In any case, a work item could be created without a parent and would require the required attributes anyway. You simply can't make the assumption you always have a parent.

You could use custom operational behavior to achieve automation for this however. shows how this can be done. The example is reverse, as it aggregates data from children to a parent, however it contains all code needed to do the reverse and populate child attributes by values from the parent (on save of the parent) or on creation of the parent link.
Sudaraazhi Arivalagan selected this answer as the correct answer

Sudaraazhi Arivalagan commented Oct 29 '14, 5:10 a.m.

Thank you so much Ralph !!!!

Your answer

Register or to post your answer.