次の方法で共有


Work Item Type Categories - Get

名前で特定の作業項目の種類カテゴリを取得します。

GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitemtypecategories/{category}?api-version=7.1-preview.2

URI パラメーター

名前 / 必須 説明
category
path True

string

カテゴリ名

organization
path True

string

Azure DevOps 組織の名前です。

project
path True

string

プロジェクト ID またはプロジェクト名

api-version
query True

string

使う API のバージョン。 このバージョンの API を使用するには、これを '7.1-preview.2' に設定する必要があります。

応答

名前 説明
200 OK

WorkItemTypeCategory

正常な操作

セキュリティ

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 category by name

Sample Request

GET https://dev.azure.com/fabrikam/Fabrikam-Fiber-Git/_apis/wit/workitemtypecategories/{category}?api-version=7.1-preview.2

Sample Response

{
  "name": "Requirement Category",
  "referenceName": "Microsoft.RequirementCategory",
  "defaultWorkItemType": {
    "name": "Product Backlog Item",
    "url": "https://dev.azure.com/fabrikam/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c/_apis/wit/workItemTypes/Product%20Backlog%20Item"
  },
  "workItemTypes": [
    {
      "name": "Product Backlog Item",
      "url": "https://dev.azure.com/fabrikam/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c/_apis/wit/workItemTypes/Product%20Backlog%20Item"
    }
  ],
  "url": "https://dev.azure.com/fabrikam/6ce954b1-ce1f-45d1-b94d-e6bf2464ba2c/_apis/wit/workItemTypeCategories/Microsoft.RequirementCategory"
}

定義

名前 説明
ReferenceLinks

REST 参照リンクのコレクションを表す クラス。

WorkItemTypeCategory

作業項目の種類カテゴリについて説明します。

WorkItemTypeReference

作業項目の種類への参照。

REST 参照リンクのコレクションを表す クラス。

名前 説明
links

object

リンクの読み取り時ビュー。 参照リンクは読み取り専用であるため、参照リンクは読み取り専用として公開する必要があります。

WorkItemTypeCategory

作業項目の種類カテゴリについて説明します。

名前 説明
_links

ReferenceLinks

関連する REST リソースへの参照をリンクします。

defaultWorkItemType

WorkItemTypeReference

作業項目の既定の種類を取得または設定します。

name

string

カテゴリの名前を指定します。

referenceName

string

カテゴリの参照名。

url

string

workItemTypes

WorkItemTypeReference[]

カテゴリに属する作業項目の種類。

WorkItemTypeReference

作業項目の種類への参照。

名前 説明
name

string

作業項目の種類の名前。

url

string