Behaviors - List
返回进程的行为的列表。
GET https://dev.azure.com/{organization}/_apis/work/processadmin/{processId}/behaviors?api-version=7.1
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
process
|
path | True |
string (uuid) |
进程的 ID |
api-version
|
query | True |
string |
要使用的 API 版本。 这应设置为“7.1”才能使用此版本的 API。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功作 |
安全性
oauth2
类型:
oauth2
流向:
accessCode
授权 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
令牌 URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
作用域
名称 | 说明 |
---|---|
vso.work | 授予读取工作项、查询、版块、区域和迭代路径以及其他工作项跟踪相关元数据的能力。 此外,还授予执行查询、搜索工作项以及通过服务挂钩接收有关工作项事件的通知的能力。 |
示例
示例请求
GET https://dev.azure.com/fabrikam/_apis/work/processadmin/{processId}/behaviors?api-version=7.1
示例响应
persistent-Auth: true
lfs-Authenticate: NTLM
{
"count": 6,
"value": [
{
"id": "System.RequirementBacklogBehavior",
"description": "Requirement level backlog and board",
"abstract": false,
"overriden": true,
"custom": false,
"name": "Stories",
"color": "009CCC",
"icon": null,
"fields": [
{
"behaviorFieldId": "Order",
"id": "Microsoft.VSTS.Common.StackRank",
"name": "Stack Rank"
},
{
"behaviorFieldId": "Effort",
"id": "Microsoft.VSTS.Scheduling.StoryPoints",
"name": "Story Points"
}
],
"inherits": "System.OrderedBehavior",
"rank": 20
},
{
"id": "Microsoft.VSTS.Agile.EpicBacklogBehavior",
"description": "Epic level backlog and board",
"abstract": false,
"overriden": false,
"custom": false,
"name": "Epics",
"color": "FF7B00",
"icon": null,
"fields": [
{
"behaviorFieldId": "Order",
"id": "Microsoft.VSTS.Common.StackRank",
"name": "Stack Rank"
}
],
"inherits": "System.PortfolioBacklogBehavior",
"rank": 40
},
{
"id": "Microsoft.VSTS.Agile.FeatureBacklogBehavior",
"description": "Feature level backlog and board",
"abstract": false,
"overriden": false,
"custom": false,
"name": "Features",
"color": "773B93",
"icon": null,
"fields": [
{
"behaviorFieldId": "Order",
"id": "Microsoft.VSTS.Common.StackRank",
"name": "Stack Rank"
}
],
"inherits": "System.PortfolioBacklogBehavior",
"rank": 30
},
{
"id": "System.OrderedBehavior",
"description": "Enables work items to be ordered relative to other work items",
"abstract": true,
"overriden": false,
"custom": false,
"name": "Ordered",
"color": null,
"icon": null,
"fields": [
{
"behaviorFieldId": "Order",
"id": "Microsoft.VSTS.Common.StackRank",
"name": "Stack Rank"
}
],
"inherits": null,
"rank": 0
},
{
"id": "System.TaskBacklogBehavior",
"description": "Task level backlog and board",
"abstract": false,
"overriden": false,
"custom": false,
"name": "Tasks",
"color": "F2CB1D",
"icon": null,
"fields": [
{
"behaviorFieldId": "Order",
"id": "Microsoft.VSTS.Common.StackRank",
"name": "Stack Rank"
},
{
"behaviorFieldId": "RemainingWork",
"id": "Microsoft.VSTS.Scheduling.RemainingWork",
"name": "Remaining Work"
},
{
"behaviorFieldId": "Activity",
"id": "Microsoft.VSTS.Common.Activity",
"name": "Activity"
}
],
"inherits": "System.OrderedBehavior",
"rank": 10
},
{
"id": "System.PortfolioBacklogBehavior",
"description": "Portfolio level backlog and board",
"abstract": true,
"overriden": false,
"custom": false,
"name": "Portfolio",
"color": null,
"icon": null,
"fields": [
{
"behaviorFieldId": "Order",
"id": "Microsoft.VSTS.Common.StackRank",
"name": "Stack Rank"
}
],
"inherits": "System.OrderedBehavior",
"rank": 0
}
]
}
定义
名称 | 说明 |
---|---|
Admin |
描述进程的管理员行为。 |
Admin |
描述管理员行为字段。 |
AdminBehavior
描述进程的管理员行为。
名称 | 类型 | 说明 |
---|---|---|
abstract |
boolean |
行为抽象(即不能与任何工作项类型相关联)。 |
color |
string |
与行为关联的颜色。 |
custom |
boolean |
指示行为是否为自定义行为。 |
description |
string |
行为的说明。 |
fields |
行为字段列表。 |
|
id |
string |
行为 ID。 |
inherits |
string |
父行为引用。 |
name |
string |
行为名称。 |
overriden |
boolean |
行为是否替代系统进程的行为。 |
rank |
integer (int32) |
排名。 |
AdminBehaviorField
描述管理员行为字段。
名称 | 类型 | 说明 |
---|---|---|
behaviorFieldId |
string |
行为字段标识符。 |
id |
string |
行为 ID。 |
name |
string |
行为名称。 |