It's all about the answers!

Ask a question

How to limit link of a child work item to only one parent at a time?


Michael Taylor (8865764) | asked Apr 24 '13, 12:28 p.m.

I want to create and link one to many child work items under/to a parent work item.  But I do not want those child work items to be linked to any other parent work items unless the parent needs to change (to correct an error, etc.).  In other words, these child work items can only be linked to one parent at a time.  And I don’t want anyone to be able to link one of these child items to a 2nd, 3rd, etc. parent while the child item is already linked to a valid parent.

 

These child work items would be of a unique (custom) work item type.

 

What is the best way to accomplish this?

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Apr 24 '13, 12:38 p.m.
a workitem can have ONLY ONE parent.. but could have multiple children.

if a workitem has a parent you cannot 'add' another parent.. you can CHANGE the parent.
or Add a Related link, or a blocks, ...
Michael Taylor selected this answer as the correct answer

Comments
Michael Taylor commented Apr 24 '13, 12:43 p.m.

Thank you.  What is the difference between adding a link that is a parent and adding a related link?  How would I navigate to those features?

I am hoping to be able to simply create each child item from a button or other simple interface on the parent.


sam detweiler commented Apr 24 '13, 5:57 p.m.

Parent/child is a specific arrangement, related is like sisters.

the button should provide the link types allowed

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.