Behaviors - List
返回进程中所有行为的列表。
GET https://dev.azure.com/{organization}/_apis/work/processes/{processId}/behaviors?api-version=5.0-preview.2
GET https://dev.azure.com/{organization}/_apis/work/processes/{processId}/behaviors?$expand={$expand}&api-version=5.0-preview.2
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
process
|
path | True |
string uuid |
进程的 ID |
api-version
|
query | True |
string |
要使用的 API 版本。 应将其设置为“5.0-preview.2”才能使用此版本的 API。 |
$expand
|
query |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功的操作 |
安全性
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token 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
Scopes
名称 | 说明 |
---|---|
vso.work | 授予读取工作项、查询、版块、区域和迭代路径以及其他工作项跟踪相关元数据的能力。 此外,还授予执行查询、搜索工作项以及通过服务挂钩接收有关工作项事件的通知的能力。 |
示例
Get the list of process behaviors |
Get the list of process behaviors with Combined |
Get the list of process behaviors with Fields option |
Get the list of process behaviors
Sample Request
GET https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors?$expand=Fields&api-version=5.0-preview.2
Sample Response
{
"count": 7,
"value": [
{
"name": "MyCustomBehavior",
"referenceName": "Custom.4b8fdba0-7064-458d-b55c-522b39059a62",
"color": "009CDD",
"rank": 50,
"description": null,
"customization": "custom",
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Custom.4b8fdba0-7064-458d-b55c-522b39059a62"
},
{
"name": "Stories",
"referenceName": "System.RequirementBacklogBehavior",
"color": "009CCC",
"rank": 20,
"description": "Requirement level backlog and board",
"customization": "inherited",
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.RequirementBacklogBehavior"
},
{
"name": "Epics",
"referenceName": "Microsoft.VSTS.Agile.EpicBacklogBehavior",
"color": "FF7B00",
"rank": 40,
"description": "Epic level backlog and board",
"customization": "system",
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Microsoft.VSTS.Agile.EpicBacklogBehavior"
},
{
"name": "Features",
"referenceName": "Microsoft.VSTS.Agile.FeatureBacklogBehavior",
"color": "773B93",
"rank": 30,
"description": "Feature level backlog and board",
"customization": "system",
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Microsoft.VSTS.Agile.FeatureBacklogBehavior"
},
{
"name": "Ordered",
"referenceName": "System.OrderedBehavior",
"color": null,
"rank": 0,
"description": "Enables work items to be ordered relative to other work items",
"customization": "system",
"inherits": null,
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
{
"name": "Tasks",
"referenceName": "System.TaskBacklogBehavior",
"color": "F2CB1D",
"rank": 10,
"description": "Task level backlog and board",
"customization": "system",
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.TaskBacklogBehavior"
},
{
"name": "Portfolio",
"referenceName": "System.PortfolioBacklogBehavior",
"color": null,
"rank": 0,
"description": "Portfolio level backlog and board",
"customization": "system",
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
}
]
}
Get the list of process behaviors with CombinedFields option
Sample Request
GET https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors?$expand=CombinedFields&api-version=5.0-preview.2
Sample Response
{
"count": 7,
"value": [
{
"name": "MyCustomBehavior",
"referenceName": "Custom.4b8fdba0-7064-458d-b55c-522b39059a62",
"color": "009CDD",
"rank": 50,
"description": null,
"customization": "custom",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
}
],
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Custom.4b8fdba0-7064-458d-b55c-522b39059a62"
},
{
"name": "Stories",
"referenceName": "System.RequirementBacklogBehavior",
"color": "009CCC",
"rank": 20,
"description": "Requirement level backlog and board",
"customization": "inherited",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
},
{
"name": "Story Points",
"referenceName": "Microsoft.VSTS.Scheduling.StoryPoints",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Scheduling.StoryPoints"
}
],
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.RequirementBacklogBehavior"
},
{
"name": "Epics",
"referenceName": "Microsoft.VSTS.Agile.EpicBacklogBehavior",
"color": "FF7B00",
"rank": 40,
"description": "Epic level backlog and board",
"customization": "system",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
}
],
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Microsoft.VSTS.Agile.EpicBacklogBehavior"
},
{
"name": "Features",
"referenceName": "Microsoft.VSTS.Agile.FeatureBacklogBehavior",
"color": "773B93",
"rank": 30,
"description": "Feature level backlog and board",
"customization": "system",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
}
],
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Microsoft.VSTS.Agile.FeatureBacklogBehavior"
},
{
"name": "Ordered",
"referenceName": "System.OrderedBehavior",
"color": null,
"rank": 0,
"description": "Enables work items to be ordered relative to other work items",
"customization": "system",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
}
],
"inherits": null,
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
{
"name": "Tasks",
"referenceName": "System.TaskBacklogBehavior",
"color": "F2CB1D",
"rank": 10,
"description": "Task level backlog and board",
"customization": "system",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
},
{
"name": "Remaining Work",
"referenceName": "Microsoft.VSTS.Scheduling.RemainingWork",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Scheduling.RemainingWork"
},
{
"name": "Activity",
"referenceName": "Microsoft.VSTS.Common.Activity",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.Activity"
}
],
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.TaskBacklogBehavior"
},
{
"name": "Portfolio",
"referenceName": "System.PortfolioBacklogBehavior",
"color": null,
"rank": 0,
"description": "Portfolio level backlog and board",
"customization": "system",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
}
],
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
}
]
}
Get the list of process behaviors with Fields option
Sample Request
GET https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors?$expand=Fields&api-version=5.0-preview.2
Sample Response
{
"count": 7,
"value": {
"count": 7,
"value": [
{
"name": "MyCustomBehavior",
"referenceName": "Custom.4b8fdba0-7064-458d-b55c-522b39059a62",
"color": "009CDD",
"rank": 50,
"description": null,
"customization": "custom",
"fields": [],
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Custom.4b8fdba0-7064-458d-b55c-522b39059a62"
},
{
"name": "Stories",
"referenceName": "System.RequirementBacklogBehavior",
"color": "009CCC",
"rank": 20,
"description": "Requirement level backlog and board",
"customization": "inherited",
"fields": [
{
"name": "Story Points",
"referenceName": "Microsoft.VSTS.Scheduling.StoryPoints",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Scheduling.StoryPoints"
}
],
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.RequirementBacklogBehavior"
},
{
"name": "Epics",
"referenceName": "Microsoft.VSTS.Agile.EpicBacklogBehavior",
"color": "FF7B00",
"rank": 40,
"description": "Epic level backlog and board",
"customization": "system",
"fields": [],
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Microsoft.VSTS.Agile.EpicBacklogBehavior"
},
{
"name": "Features",
"referenceName": "Microsoft.VSTS.Agile.FeatureBacklogBehavior",
"color": "773B93",
"rank": 30,
"description": "Feature level backlog and board",
"customization": "system",
"fields": [],
"inherits": {
"behaviorRefName": "System.PortfolioBacklogBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/Microsoft.VSTS.Agile.FeatureBacklogBehavior"
},
{
"name": "Ordered",
"referenceName": "System.OrderedBehavior",
"color": null,
"rank": 0,
"description": "Enables work items to be ordered relative to other work items",
"customization": "system",
"fields": [
{
"name": "Stack Rank",
"referenceName": "Microsoft.VSTS.Common.StackRank",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.StackRank"
}
],
"inherits": null,
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
{
"name": "Tasks",
"referenceName": "System.TaskBacklogBehavior",
"color": "F2CB1D",
"rank": 10,
"description": "Task level backlog and board",
"customization": "system",
"fields": [
{
"name": "Remaining Work",
"referenceName": "Microsoft.VSTS.Scheduling.RemainingWork",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Scheduling.RemainingWork"
},
{
"name": "Activity",
"referenceName": "Microsoft.VSTS.Common.Activity",
"url": "https://dev.azure.com/fabrikam/_apis/wit/fields/Microsoft.VSTS.Common.Activity"
}
],
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.TaskBacklogBehavior"
},
{
"name": "Portfolio",
"referenceName": "System.PortfolioBacklogBehavior",
"color": null,
"rank": 0,
"description": "Portfolio level backlog and board",
"customization": "system",
"fields": [],
"inherits": {
"behaviorRefName": "System.OrderedBehavior",
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.OrderedBehavior"
},
"url": "https://dev.azure.com/fabrikam/_apis/work/processes/906c7065-2a04-4f61-aac1-b5da9cef040b/behaviors/System.PortfolioBacklogBehavior"
}
]
}
}
定义
名称 | 说明 |
---|---|
Customization |
指示此工作项的自定义类型。 系统行为继承自父进程,但未修改。 继承的行为是从父进程继承的修改后的行为。 自定义行为是用户在当前进程中创建的行为。 |
Get |
|
Process |
进程行为模型。 |
Process |
进程行为字段。 |
Process |
进程行为参考。 |
CustomizationType
指示此工作项的自定义类型。 系统行为继承自父进程,但未修改。 继承的行为是从父进程继承的修改后的行为。 自定义行为是用户在当前进程中创建的行为。
名称 | 类型 | 说明 |
---|---|---|
custom |
string |
如果自定义了新创建的 workitemtype,则 Customization-type 为 Custom。 |
inherited |
string |
如果自定义继承进程的现有工作项类型,则 Customization-type 为 Inherited。 |
system |
string |
如果 是系统生成的 workitemtype,则 Customization-type 为 System。 |
GetBehaviorsExpand
名称 | 类型 | 说明 |
---|---|---|
combinedFields |
string |
此选项返回与此行为关联的字段,以及它从中继承的所有行为。 |
fields |
string |
此选项返回与行为关联的字段。 |
none |
string |
默认无选项。 |
ProcessBehavior
进程行为模型。
名称 | 类型 | 说明 |
---|---|---|
color |
string |
颜色。 |
customization |
指示此工作项的自定义类型。 系统行为继承自父进程,但未修改。 继承的行为是从父进程继承的修改后的行为。 自定义行为是用户在当前进程中创建的行为。 |
|
description |
string |
. 说明 |
fields |
处理行为字段。 |
|
inherits |
父行为参考。 |
|
name |
string |
行为名称。 |
rank |
integer |
行为的排名 |
referenceName |
string |
行为 ID |
url |
string |
行为的 URL。 |
ProcessBehaviorField
进程行为字段。
名称 | 类型 | 说明 |
---|---|---|
name |
string |
字段的名称。 |
referenceName |
string |
字段的引用名称。 |
url |
string |
字段的 URL。 |
ProcessBehaviorReference
进程行为参考。
名称 | 类型 | 说明 |
---|---|---|
behaviorRefName |
string |
行为的 ID。 |
url |
string |
行为的 URL。 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈