我们正在开发一个 Azure DevOps 扩展,以便将对工作项的更改推送到外部系统。
我们希望在目标系统的 Azure DevOps(Epic-> Feature -> PBI/Bug)中维护/保留层次结构,因此我们需要确定工作项具有哪个父级。
从 API 中拉取 Work item 实体时,它看起来像这样(略略)
{
"id": 5202,
"rev": 2,
"fields": {
"System.WorkItemType": "Task",
"System.State": "To Do",
"System.Reason": "New task",
"System.CreatedDate": "2017-10-30T10:18:06.233Z",
"System.CreatedBy": "Jesper Lund Stocholm",
"Microsoft.VSTS.Common.Priority": 2,
"Microsoft.VSTS.Scheduling.RemainingWork": 23.0,
"Microsoft.VSTS.Common.StateChangeDate": "2017-10-30T10:18:06.233Z",
},
"_links": {
"self": {
"href": "https://{myorg}.visualstudio.com/_apis/wit/workItems/5202"
},
"workItemUpdates": {
"href": "https://{myorg}.visualstudio.com/_apis/wit/workItems/5202/updates"
},
"workItemRevisions": {
"href": "https://{myorg}.visualstudio.com/_apis/wit/workItems/5202/revisions"
},
"workItemHistory": {
"href": "https://{myorg}.visualstudio.com/_apis/wit/workItems/5202/history"
},
"html": {
"href": "https://{myorg}.visualstudio.com/web/wi.aspx?pcguid=e5d991b2-9879-497c-85fb-c618f144a9c5&id=5202"
},
"workItemType": {
"href": "https://{myorg}.visualstudio.com/6847ebed-cbca-4510-8baa-228c7c55ba8d/_apis/wit/workItemTypes/Task"
},
"fields": {
"href": "https://{myorg}.visualstudio.com/_apis/wit/fields"
}
},
"url": "https://{myorg}.visualstudio.com/_apis/wit/workItems/5202"
}
显而易见的地方是这里 https://{myorg}.visualstudio.com/_apis/wit/fields
但是我们找不到任何对“父实体”的引用痕迹。
这个值不暴露是真的吗?