无法使用 Azure DevOps 检索自定义字段的标签 API

Could not retrieve label of a custom field with Azure DevOps API

我正在将我们的产品与 Azure DevOps 集成,但目前我无法检索自定义字段的标签。我无法使用名称 属性,因为该名称未反映 Azure DevOps 的更改。

我正在使用“https://dev.azure.com/{organize}/{projectId}/_apis/wit/fields/Custom.NewHungField”API 来获取有关自定义字段的信息,但它不会return 字段标签。

谢谢。

是的,使用Fields - Get directly. But you can see the label of the custom fileds using Work Item Types - Get时找不到标签。

更多信息,您可以查看下面的演示:

使用API:

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitemtypes/{type}?api-version=5.1

得到响应:

您可以在其中找到自定义字段的标签。