如何在 azure 票证中查看工作项 xml id
我有一个带有一些自定义字段的天蓝色 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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了节省调用 Azure DevOps REST API 时的响应时间,很多时候它不会将完整的属性加载到请求正文。
如果你想查看更多的属性,可以尝试使用参数
$expand
来展开完整的属性。此外,您还可以使用 API“工作项 - 获取工作项" 获取您需要的工作项类型的工作项,并使用参数
$expand
展开所有字段。这还可以列出工作项类型的所有字段。
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.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.This also can list all the fields on the work item type.