Behaviors - List
Mengembalikan daftar semua perilaku dalam proses.
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
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
organization
|
path | True |
string |
Nama organisasi Azure DevOps. |
process
|
path | True |
string uuid |
ID proses |
api-version
|
query | True |
string |
Versi API yang akan digunakan. Ini harus diatur ke '5.0-preview.2' untuk menggunakan versi api ini. |
$expand
|
query |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
200 OK |
operasi berhasil |
Keamanan
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
Nama | Deskripsi |
---|---|
vso.work | Memberikan kemampuan untuk membaca item kerja, kueri, papan, jalur perulangan dan area, serta metadata terkait pelacakan item kerja lainnya. Juga memberikan kemampuan untuk menjalankan kueri, mencari item kerja, dan menerima pemberitahuan tentang peristiwa item kerja melalui kait layanan. |
Contoh
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"
}
]
}
}
Definisi
Nama | Deskripsi |
---|---|
Customization |
Menunjukkan jenis kustomisasi pada item kerja ini. Perilaku sistem diwariskan dari proses induk tetapi tidak dimodifikasi. Perilaku yang diwariskan adalah perilaku modifikasi yang dimodifikasi yang diwarisi dari proses induk. Perilaku kustom adalah perilaku yang dibuat oleh pengguna dalam proses saat ini. |
Get |
|
Process |
Model Perilaku Proses. |
Process |
Bidang Perilaku Proses. |
Process |
Referensi perilaku proses. |
CustomizationType
Menunjukkan jenis kustomisasi pada item kerja ini. Perilaku sistem diwariskan dari proses induk tetapi tidak dimodifikasi. Perilaku yang diwariskan adalah perilaku modifikasi yang dimodifikasi yang diwarisi dari proses induk. Perilaku kustom adalah perilaku yang dibuat oleh pengguna dalam proses saat ini.
Nama | Jenis | Deskripsi |
---|---|---|
custom |
string |
Jenis kustomisasi adalah Kustom jika workitemtype yang baru dibuat disesuaikan. |
inherited |
string |
Jenis kustomisasi diwariskan jika workitemtype yang ada dari proses yang diwariskan disesuaikan. |
system |
string |
Jenis kustomisasi adalah System jika merupakan workitemtype yang dihasilkan sistem. |
GetBehaviorsExpand
Nama | Jenis | Deskripsi |
---|---|---|
combinedFields |
string |
Opsi ini mengembalikan bidang yang terkait dengan perilaku ini dan semua perilaku yang diwarisinya. |
fields |
string |
Opsi ini mengembalikan bidang yang terkait dengan perilaku. |
none |
string |
Opsi tidak ada default. |
ProcessBehavior
Model Perilaku Proses.
Nama | Jenis | Deskripsi |
---|---|---|
color |
string |
Warna. |
customization |
Menunjukkan jenis kustomisasi pada item kerja ini. Perilaku sistem diwariskan dari proses induk tetapi tidak dimodifikasi. Perilaku yang diwariskan adalah perilaku modifikasi yang dimodifikasi yang diwarisi dari proses induk. Perilaku kustom adalah perilaku yang dibuat oleh pengguna dalam proses saat ini. |
|
description |
string |
. Deskripsi |
fields |
Bidang Perilaku Proses. |
|
inherits |
Referensi perilaku induk. |
|
name |
string |
Nama Perilaku. |
rank |
integer |
Peringkat perilaku |
referenceName |
string |
Id Perilaku |
url |
string |
Url perilaku. |
ProcessBehaviorField
Bidang Perilaku Proses.
Nama | Jenis | Deskripsi |
---|---|---|
name |
string |
Nama bidang. |
referenceName |
string |
Nama referensi bidang. |
url |
string |
Url ke bidang. |
ProcessBehaviorReference
Referensi perilaku proses.
Nama | Jenis | Deskripsi |
---|---|---|
behaviorRefName |
string |
Id Perilaku. |
url |
string |
Url ke perilaku. |