Behaviors - List

返回进程中所有行为的列表。

GET https://dev.azure.com/{organization}/_apis/work/processdefinitions/{processId}/behaviors?api-version=4.1-preview.1

URI 参数

名称 必需 类型 说明
organization
path True

string

Azure DevOps 组织的名称。

processId
path True

string

uuid

进程的 ID

api-version
query True

string

要使用的 API 版本。 应将其设置为“4.1-preview.1”才能使用此版本的 API。

响应

名称 类型 说明
200 OK

BehaviorModel[]

成功的操作

安全性

accessToken

个人访问令牌。 将任何值用作用户名和令牌作为密码。

类型: basic

示例

Get the list of custom process behaviors

示例请求

GET https://dev.azure.com/{organization}/_apis/work/processdefinitions/{processId}/behaviors?api-version=4.1-preview.1

示例响应

{
  "count": 1,
  "value": [
    {
      "id": "Custom.744f8613-217a-4fd3-8110-c5611181bec4",
      "name": "CustomBehavior",
      "abstract": false,
      "overridden": false,
      "color": "009CCC",
      "rank": 50,
      "url": "https://dev.azure.com/fabrikam/_apis/work/processDefinitions/a6c1d9b6-ea27-407d-8c40-c9b7ab112bb6/behaviors"
    }
  ]
}

定义

名称 说明
BehaviorModel
WorkItemBehaviorReference

BehaviorModel

名称 类型 说明
abstract

boolean

行为抽象 (即不能与任何工作项类型相关联)

color

string

颜色

description

string

说明

id

string

行为 ID

inherits

WorkItemBehaviorReference

父行为参考

name

string

行为名称

overridden

boolean

该行为是否替代了来自系统进程的行为

rank

integer

排名

url

string

行为的 URL

WorkItemBehaviorReference

名称 类型 说明
id

string

引用行为的 ID

url

string

引用行为的 URL