Bagikan melalui


Processes - List

Dapatkan daftar semua proses termasuk sistem dan diwariskan.

GET https://dev.azure.com/{organization}/_apis/work/processes?api-version=7.1-preview.2
GET https://dev.azure.com/{organization}/_apis/work/processes?$expand={$expand}&api-version=7.1-preview.2

Parameter URI

Nama Dalam Diperlukan Jenis Deskripsi
organization
path True

string

Nama organisasi Azure DevOps.

api-version
query True

string

Versi API yang akan digunakan. Ini harus diatur ke '7.1-preview.2' untuk menggunakan versi api ini.

$expand
query

GetProcessExpandLevel

Respons

Nama Jenis Deskripsi
200 OK

ProcessInfo[]

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 area dan iterasi, dan 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 processes

Sample Request

GET https://dev.azure.com/{organization}/_apis/work/processes?api-version=7.1-preview.2

Sample Response

{
  "count": 14,
  "value": [
    {
      "typeId": "adcc42ab-9882-485e-a3ed-7678f01f66bc",
      "referenceName": null,
      "name": "Agile",
      "description": "This template is flexible and will work great for most teams using Agile planning methods, including those practicing Scrum.",
      "parentProcessTypeId": "00000000-0000-0000-0000-000000000000",
      "isEnabled": true,
      "isDefault": true,
      "customizationType": "System"
    },
    {
      "typeId": "27450541-8e31-4150-9947-dc59f998fc01",
      "referenceName": null,
      "name": "CMMI",
      "description": "This template is for more formal projects requiring a framework for process improvement and an auditable record of decisions.",
      "parentProcessTypeId": "00000000-0000-0000-0000-000000000000",
      "isEnabled": true,
      "isDefault": false,
      "customizationType": "System"
    },
    {
      "typeId": "6b724908-ef14-45cf-84f8-768b5384da45",
      "referenceName": null,
      "name": "Scrum",
      "description": "This template is for teams who follow the Scrum framework.",
      "parentProcessTypeId": "00000000-0000-0000-0000-000000000000",
      "isEnabled": true,
      "isDefault": false,
      "customizationType": "System"
    },
    {
      "typeId": "e31fd6e1-c6af-44bb-925e-dfa71f551463",
      "referenceName": null,
      "name": "CustomProcess",
      "description": "This template is flexible and will work great for most teams using Agile planning methods, including those practicing Scrum.",
      "parentProcessTypeId": "00000000-0000-0000-0000-000000000000",
      "isEnabled": true,
      "isDefault": false,
      "customizationType": "Inherited"
    }
  ]
}

Definisi

Nama Deskripsi
CustomizationType

Menunjukkan jenis kustomisasi pada item kerja ini. Perilaku sistem diwarisi dari proses induk tetapi tidak dimodifikasi. Perilaku yang diwariskan adalah perilaku yang dimodifikasi yang diwarisi dari proses induk. Perilaku kustom adalah perilaku yang dibuat oleh pengguna dalam proses saat ini.

GetProcessExpandLevel
ProcessInfo

Proses.

ProjectReference

Menentukan kelas referensi proyek.

CustomizationType

Menunjukkan jenis kustomisasi pada item kerja ini. Perilaku sistem diwarisi dari proses induk tetapi tidak dimodifikasi. Perilaku yang diwariskan adalah perilaku 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 Sistem jika adalah workitemtype yang dihasilkan sistem.

GetProcessExpandLevel

Nama Jenis Deskripsi
none

string

Tidak ada tingkat perluas.

projects

string

Proyek memperluas tingkat.

ProcessInfo

Proses.

Nama Jenis Deskripsi
customizationType

CustomizationType

Menunjukkan jenis kustomisasi pada proses ini. Proses Sistem adalah proses default. Proses yang Diwariskan adalah proses yang dimodifikasi yang merupakan proses Sistem sebelumnya.

description

string

Deskripsi proses.

isDefault

boolean

Apakah proses default.

isEnabled

boolean

Apakah proses diaktifkan.

name

string

Nama proses.

parentProcessTypeId

string

ID proses induk.

projects

ProjectReference[]

Proyek dalam proses ini tempat pengguna berlangganan.

referenceName

string

Nama referensi proses.

typeId

string

ID proses.

ProjectReference

Menentukan kelas referensi proyek.

Nama Jenis Deskripsi
description

string

Deskripsi proyek

id

string

ID proyek

name

string

Nama proyek

url

string

Url proyek