如何在 azure 票证中查看工作项 xml id

发布于 2025-01-10 14:05:29 字数 712 浏览 2 评论 0原文

我有一个带有一些自定义字段的天蓝色 devops 工作项:

在此处输入图像描述

我可以使用 azure api python 包设置其中一些字段,就像“RTCID”一样:

jpo.path = "/fields/Custom.RTCID"

但是当我尝试设置目标时发布后,我找不到该变量的字段路径是什么,我已经尝试过

jpo.path = "/fields/Custom.TargetedRelease"

但这会导致错误。 我知道我的组织 ID,有什么方法可以列出工单中的所有变量路径 ID?

我尝试去 https:// dev.azure.com/{organization}/{project}/_apis/wit/workitemtypes/Epic/fields 查看所有字段,但 ctrl+f 搜索对于“有针对性”没有结果

I have an azure devops work item with some custom fields:

enter image description here

I can set some of these fields using the azure api python package, like so for 'RTCID':

jpo.path = "/fields/Custom.RTCID"

But when I try to set the targeted release, I can't find what the field path is for this variable, I've tried

jpo.path = "/fields/Custom.TargetedRelease"

But that results in an error.
I know my organization id, is there any way I can list all the variable path IDs in a ticket?

I tried going to https://dev.azure.com/{organization}/{project}/_apis/wit/workitemtypes/Epic/fields to see all the fields, but ctrl+f searching for 'targeted' brings up no results

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦萦几度 2025-01-17 14:05:29

为了节省调用 Azure DevOps REST API 时的响应时间,很多时候它不会将完整的属性加载到请求正文。

如果你想查看更多的属性,可以尝试使用参数$expand来展开完整的属性。

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitemtypes/{type}/fields?$expand=all&api-version=7.1-preview.3

此外,您还可以使用 API“工作项 - 获取工作项" 获取您需要的工作项类型的工作项,并使用参数$expand 展开所有字段。

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems/{id}?$expand=fields&api-version=7.1-preview.3

这还可以列出工作项类型的所有字段。

To save the response time when calling a Azure DevOps REST API, many times it will not load the complete properties to the request body.

If you want to view more properties, you can try to use the parameter $expand to expand the complete properties.

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitemtypes/{type}/fields?$expand=all&api-version=7.1-preview.3

In addition, you also can use the API "Work Items - Get Work Item" to get a work item that is the work item type you require, and use the parameter $expand to expand all the fields.

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems/{id}?$expand=fields&api-version=7.1-preview.3

This also can list all the fields on the work item type.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文