TFS REST API:获取给定字段的允许值/ lookUp值 [英] TFS REST API : fetch the allowed values/lookUp values for the given field

查看:92
本文介绍了TFS REST API:获取给定字段的允许值/ lookUp值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现以下两个API会在集合或项目级别返回字段信息

I found following two API which return the field information at collection or project level

API 1:

https://< accountname> .visualstudio.com / DefaultCollection / _apis / wit / fields?api-version = 1.0

https://<accountname>.visualstudio.com/DefaultCollection/_apis/wit/fields?api-version=1.0

  [列出集合级别所有字段信息(包括字段名称,参考名称,类型,只读,支持的操作)

 [List the collection level all fields information (included field name, reference Name, type, read Only, supported Operation]

API 2:

https://< accoutname> .visualstudio.com / DefaultCollection /<项目名称> / _ apis / wit / workItemTypes / Bug?api-version = 1.0

https://<accoutname>.visualstudio.com/DefaultCollection/<project name>/_apis/wit/workItemTypes/Bug?api-version=1.0

[列出给定项目和工作项类型的字段信息(包括字段总是必需,名称,引用名称,URL)]

[List the field information for the given project and work item type (included the field always Required, name, reference name, URL)]

我想知道是否有可用的REST API列出了给定字段可能允许的值,以上API响应都没有包含字段的允许值(查找值)例如优先级,严重性等。

I want to know is there any REST API available which list the possible allowed values for the given field,None of above API response included the allowed values (look up values) for the field such as priority, severity etc.

请l我知道是否允许使用允许的值Rest API。如果是,请提供有关此类API的信息。

Kindly let me know whether allowed values Rest API available or not. if yes, provide the information about such API.

提前致谢。

推荐答案

嗨!

我没有查看允许值的操作。你可以使用"witadmin"。得到witype的xml定义。

I did not see operation for allowed values. You can use "witadmin" to get xml definition of witype.


这篇关于TFS REST API:获取给定字段的允许值/ lookUp值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆