How to add parent work item id in children task?

2 answers

You can go to workitem's link tab, then add "set parent" link. From which, there is a dialog pops up and you can search for the parent id there and select it. Once this is set, you can always see the parent tag with the parent workitem id and its summary and you can hove on it to view the parent workitem. If you go to the parent workitem's link tab, you will find the Children tag with the children workitems it has.

Your requirements are not very clear. You can see the parent in the links section. How to create links, see https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/
Comments

Also interesting https://rsjazz.wordpress.com/2013/12/17/using-reference-presentations-to-create-links-and-show-linked-work-items-in-rtc/

Hi Ralph,
Suppose I have a parent work item of id 2201 and children work item of id 2202, my requirement is, When I will open 2202 (children work item) then near summary field or any other field will show the parent work item id of the children task.