How to add work item as child to parent?

Question:

I’ve been able to find documentation on creating work items via the VSTS REST API, however, I haven’t been able to find anything creating a work item and linking it to a Parent work item.

Searching around, I’ve seen some links regarding a System.LinkTypes.Hierarchy-Reverse, but no API reference on how it works, or how it might link a work item to a parent work item id. Link here

Answer:

To add a work item with parent work item linked, you should use the REST API as:


application/json-patch+json:

Below is the example to create a task mytask with parent work item (work item id is 184) linked:

application/json-patch+json:

Source:

How to add work item as child to parent? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply