Forum Discussion
Saitir
Aug 17, 2023Copper Contributor
Unable to add a parent when creating an item in Devops REST api - on premises
 Adding some automation to our internal devops processes, and most things are working just fine, e.g., creating Epics, Features, Stories, Tasks. Creating iterations and adding work items to them also ...
Kidd_Ip
Oct 28, 2025MVP
How about this:
[
  {
    "op": "add",
    "path": "/fields/System.Title",
    "value": "My First Title"
  },
  {
    "op": "add",
    "path": "/fields/System.Description",
    "value": "We can add a description to the item here if we wish."
  },
  {
    "op": "add",
    "path": "/fields/System.IterationPath",
    "value": "MyFirstProject\\My First Iteration"
  },
  {
    "op": "add",
    "path": "/relations/-",
    "value": {
      "rel": "System.LinkTypes.Hierarchy-Reverse",
      "url": "http://mytfsserver:8080/tfs/myfirstcollection/_apis/wit/workitems/526"
    }
  }
]