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 (441728) | asked Oct 29 '14, 2:13 a.m.

Hi,

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.....

Thanks

Sudar

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered Oct 29 '14, 4:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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. http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ 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

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

Thank you so much Ralph !!!!

Your answer


Register or 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.