Aracılığıyla paylaş


States - Hide State Definition

İşlemin iş öğesi türünde durum tanımını gizler.

PUT https://dev.azure.com/{organization}/_apis/work/processdefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}?api-version=4.1-preview.1

URI Parametreleri

Name İçinde Gerekli Tür Description
organization
path True

string

Azure DevOps kuruluşunun adı.

processId
path True

string

uuid

İşlemin kimliği

stateId
path True

string

uuid

Durumun kimliği

witRefName
path True

string

İş öğesi türünün başvuru adı

api-version
query True

string

Kullanılacak API sürümü. Api'nin bu sürümünü kullanmak için bu değer '4.1-preview.1' olarak ayarlanmalıdır.

İstek Gövdesi

Name Tür Description
hidden

boolean

Yanıtlar

Name Tür Description
200 OK

WorkItemStateResultModel

başarılı işlem

Güvenlik

accessToken

Kişisel erişim belirteci. Parola olarak kullanıcı adı ve belirteç için herhangi bir değer kullanın.

Tür: basic

Örnekler

Hide the state definition

Örnek isteği

PUT https://dev.azure.com/{organization}/_apis/work/processdefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}?api-version=4.1-preview.1

{
  "hidden": true
}

Örnek yanıt

{
  "id": "f36cfea7-889a-448e-b5d1-fbc9b134ec82",
  "name": "Resolved",
  "color": "007acc",
  "stateCategory": "InProgress",
  "order": 6,
  "url": "https://dev.azure.com/fabrikam/_apis/work/processDefinitions/a6c1d9b6-ea27-407d-8c40-c9b7ab112bb6/workItemTypes/myAgile.Epic/states/f36cfea7-889a-448e-b5d1-fbc9b134ec82",
  "hidden": true
}

Tanımlar

Name Description
HideStateModel
WorkItemStateResultModel

HideStateModel

Name Tür Description
hidden

boolean

WorkItemStateResultModel

Name Tür Description
color

string

Durumun rengi

hidden

boolean

Durum gizli mi?

id

string

Eyaletin Kimliği

name

string

Durumun adı

order

integer

Durumun hangi durumda görünmesi gerektiği

stateCategory

string

Durumun kategorisi

url

string

Durumun url'si