Share via


Work Item Types - Get

傳回工作專案類型定義。

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

URI 參數

名稱 位於 必要 類型 Description
organization
path True

string

Azure DevOps 組織的名稱。

project
path True

string

專案識別碼或專案名稱

type
path True

string

工作專案類型名稱

api-version
query True

string

要使用的 API 版本。 這應該設定為 '7.1-preview.2' 以使用此版本的 API。

回應

名稱 類型 Description
200 OK

WorkItemType

成功的作業

安全性

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

名稱 Description
vso.work 授與讀取工作專案、查詢、面板、區域和反復專案路徑,以及其他工作專案追蹤相關中繼資料的能力。 也授與執行查詢、搜尋工作專案,以及透過服務勾點接收工作專案事件通知的能力。

範例

Sample Request

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

Sample Response

{
  "name": "Bug",
  "referenceName": "Microsoft.VSTS.WorkItemTypes.Bug",
  "description": "Describes a divergence between required and actual behavior, and tracks the work done to correct the defect and verify the correction.",
  "color": "CC293D",
  "icon": {
    "id": "icon_insect",
    "url": "https://dev.azure.com/fabrikam/_apis/wit/workItemIcons/icon_insect?color=CC293D&v=2"
  },
  "isDisabled": false,
  "xmlForm": "<FORM><Layout HideReadOnlyEmptyFields=\"true\" HideControlBorders=\"true\"><Group Margin=\"(10,0,0,0)\"><Column PercentWidth=\"94\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"System.Title\" Type=\"FieldControl\" EmptyText=\"Enter title here\" ControlFontSize=\"large\" /></Column><Column PercentWidth=\"6\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"System.Id\" Type=\"FieldControl\" ControlFontSize=\"large\" /></Column></Group><Group Margin=\"(10,10,0,0)\"><Column PercentWidth=\"30\"><Control Label=\"Assi&amp;gned To\" LabelPosition=\"Left\" FieldName=\"System.AssignedTo\" Type=\"FieldControl\" EmptyText=\"Unassigned\" /><Control Label=\"Stat&amp;e\" LabelPosition=\"Left\" FieldName=\"System.State\" Type=\"FieldControl\" /><Control Label=\"Reason\" LabelPosition=\"Left\" FieldName=\"System.Reason\" Type=\"FieldControl\" /></Column><Column PercentWidth=\"40\"><Control Label=\"\" LabelPosition=\"Top\" Type=\"LabelControl\" /><Control Label=\"&amp;Area\" LabelPosition=\"Left\" FieldName=\"System.AreaPath\" Type=\"WorkItemClassificationControl\" /><Control Label=\"Ite&amp;ration\" LabelPosition=\"Left\" FieldName=\"System.IterationPath\" Type=\"WorkItemClassificationControl\" /></Column><Column PercentWidth=\"30\"><Control Label=\"\" LabelPosition=\"Top\" Name=\"2\" Type=\"LabelControl\" /><Control Label=\"\" LabelPosition=\"Top\" Name=\"3\" Type=\"LabelControl\" /><Control Label=\"Last Updated Date\" LabelPosition=\"Left\" FieldName=\"System.ChangedDate\" Type=\"DateTimeControl\" ReadOnly=\"True\" /></Column></Group><TabGroup Margin=\"(0,10,0,0)\"><Tab Label=\"Details\"><Group><Column PercentWidth=\"50\"><Group><Column PercentWidth=\"100\"><Group Label=\"Repro Steps\"><Column PercentWidth=\"100\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.TCM.ReproSteps\" Type=\"HtmlFieldControl\" Margin=\"(0,0,0,10)\" /></Column></Group><Group Label=\"System Info\"><Column PercentWidth=\"100\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.TCM.SystemInfo\" Type=\"HtmlFieldControl\" Margin=\"(0,0,0,10)\" /></Column></Group></Column></Group></Column><Column PercentWidth=\"50\"><Group Margin=\"(20,0,0,0)\"><Column PercentWidth=\"25\"><Group><Column PercentWidth=\"100\"><Group Label=\"Planning\"><Column PercentWidth=\"100\"><Control Label=\"Resolved Reason\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Common.ResolvedReason\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Story Points\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Scheduling.StoryPoints\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Priority\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Common.Priority\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Severity\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Common.Severity\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Activity\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Common.Activity\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /></Column></Group><Group Label=\"Effort (Hours)\"><Column PercentWidth=\"100\"><Control Label=\"Original Estimate\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Scheduling.OriginalEstimate\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Remaining\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Scheduling.RemainingWork\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Completed\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Scheduling.CompletedWork\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /></Column></Group></Column></Group></Column><Column PercentWidth=\"25\"><Group><Column PercentWidth=\"100\"><Group Label=\"Development\"><Column PercentWidth=\"100\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"Development\" Type=\"LinksControl\" Margin=\"(0,0,0,10)\"><LinksControlOptions><WorkItemLinkFilters FilterType=\"excludeAll\" /><ExternalLinkFilters FilterType=\"include\"><Filter LinkType=\"Build\" /><Filter LinkType=\"Integrated in build\" /><Filter LinkType=\"Pull Request\" /><Filter LinkType=\"Branch\" /><Filter LinkType=\"Fixed in Commit\" /><Filter LinkType=\"Fixed in Changeset\" /><Filter LinkType=\"Source Code File\" /><Filter LinkType=\"Found in build\" /></ExternalLinkFilters><LinkColumns><LinkColumn RefName=\"System.Id\" /><LinkColumn RefName=\"System.Title\" /><LinkColumn LinkAttribute=\"System.Links.Comment\" /></LinkColumns></LinksControlOptions></Control></Column></Group><Group Label=\"Related Work\"><Column PercentWidth=\"100\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"Related Work\" Type=\"LinksControl\" Margin=\"(0,0,0,10)\"><LinksControlOptions><WorkItemLinkFilters FilterType=\"include\"><Filter LinkType=\"System.LinkTypes.Duplicate\" /><Filter LinkType=\"System.LinkTypes.Hierarchy\" /><Filter LinkType=\"Microsoft.VSTS.Common.TestedBy\" /><Filter LinkType=\"System.LinkTypes.Dependency\" /><Filter LinkType=\"System.LinkTypes.Related\" /></WorkItemLinkFilters><ExternalLinkFilters FilterType=\"excludeAll\" /><LinkColumns><LinkColumn RefName=\"System.Id\" /><LinkColumn RefName=\"System.Title\" /><LinkColumn RefName=\"System.AssignedTo\" /><LinkColumn RefName=\"System.WorkItemType\" /><LinkColumn RefName=\"System.State\" /><LinkColumn RefName=\"System.ChangedDate\" /><LinkColumn LinkAttribute=\"System.Links.Comment\" /></LinkColumns></LinksControlOptions></Control></Column></Group><Group Label=\"System Info\"><Column PercentWidth=\"100\"><Control Label=\"Found in Build\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Build.FoundIn\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /><Control Label=\"Integrated in Build\" LabelPosition=\"Top\" FieldName=\"Microsoft.VSTS.Build.IntegrationBuild\" Type=\"FieldControl\" Margin=\"(0,0,0,10)\" /></Column></Group></Column></Group></Column></Group></Column></Group></Tab><Tab Label=\"History\"><Group><Column PercentWidth=\"100\"><Group><Column PercentWidth=\"100\"><Group><Column PercentWidth=\"100\"><Control Label=\"\" LabelPosition=\"Top\" FieldName=\"System.History\" Type=\"WorkItemLogControl\" Margin=\"(0,0,0,10)\" /></Column></Group></Column></Group></Column></Group></Tab><Tab Label=\"Links\"><Group><Column PercentWidth=\"100\"><Group><Column PercentWidth=\"100\"><Group><Column PercentWidth=\"100\"><Control Label=\"\" LabelPosition=\"Top\" Type=\"LinksControl\" Margin=\"(0,0,0,10)\"><LinksControlOptions><LinkColumns><LinkColumn RefName=\"System.Id\" /><LinkColumn RefName=\"System.Title\" /><LinkColumn RefName=\"System.AssignedTo\" /><LinkColumn RefName=\"System.WorkItemType\" /><LinkColumn RefName=\"System.State\" /><LinkColumn RefName=\"System.ChangedDate\" /><LinkColumn LinkAttribute=\"System.Links.Comment\" /></LinkColumns></LinksControlOptions></Control></Column></Group></Column></Group></Column></Group></Tab><Tab Label=\"Attachments\"><Group><Column PercentWidth=\"100\"><Group><Column PercentWidth=\"100\"><Group><Column PercentWidth=\"100\"><Control Label=\"Attachments\" LabelPosition=\"Top\" Type=\"AttachmentsControl\" Margin=\"(0,0,0,10)\" /></Column></Group></Column></Group></Column></Group></Tab></TabGroup></Layout></FORM>",
  "fields": [
    {
      "helpText": "The iteration within which this bug will be fixed",
      "alwaysRequired": false,
      "referenceName": "System.IterationPath",
      "name": "Iteration Path",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": true,
      "referenceName": "System.IterationId",
      "name": "Iteration ID",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.ExternalLinkCount",
      "name": "External Link Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.TeamProject",
      "name": "Team Project",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.HyperLinkCount",
      "name": "Hyperlink Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AttachedFileCount",
      "name": "Attached File Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.NodeName",
      "name": "Node Name",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The area of the product with which this bug is associated",
      "alwaysRequired": false,
      "referenceName": "System.AreaPath",
      "name": "Area Path",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.RevisedDate",
      "name": "Revised Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.ChangedDate",
      "name": "Changed Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Id",
      "name": "ID",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": true,
      "referenceName": "System.AreaId",
      "name": "Area ID",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AuthorizedAs",
      "name": "Authorized As",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Stories affected and how",
      "alwaysRequired": true,
      "referenceName": "System.Title",
      "name": "Title",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "New = for triage; Active = not yet fixed; Resolved = fixed not yet verified; Closed = fix verified.",
      "alwaysRequired": true,
      "referenceName": "System.State",
      "name": "State",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AuthorizedDate",
      "name": "Authorized Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Watermark",
      "name": "Watermark",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Rev",
      "name": "Rev",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.ChangedBy",
      "name": "Changed By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The reason why the bug is in the current state",
      "alwaysRequired": false,
      "referenceName": "System.Reason",
      "name": "Reason",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The person currently working on this bug",
      "alwaysRequired": false,
      "referenceName": "System.AssignedTo",
      "name": "Assigned To",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.WorkItemType",
      "name": "Work Item Type",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.CreatedDate",
      "name": "Created Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.CreatedBy",
      "name": "Created By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Description",
      "name": "Description",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Discussion thread plus automatic record of changes",
      "alwaysRequired": false,
      "referenceName": "System.History",
      "name": "History",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.RelatedLinkCount",
      "name": "Related Link Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Tags",
      "name": "Tags",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BoardColumn",
      "name": "Board Column",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BoardColumnDone",
      "name": "Board Column Done",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BoardLane",
      "name": "Board Lane",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The size of work estimated for fixing the bug",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.StoryPoints",
      "name": "Story Points",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "An estimate of the number of units of work remaining to complete this bug",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.RemainingWork",
      "name": "Remaining Work",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Initial value for Remaining Work - set once, when work begins",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.OriginalEstimate",
      "name": "Original Estimate",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The number of units of work that have been spent on this bug",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.CompletedWork",
      "name": "Completed Work",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Type of work involved",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.Activity",
      "name": "Activity",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Test context, provided automatically by test infrastructure",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.TCM.SystemInfo",
      "name": "System Info",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "How to see the bug. End by contrasting expected with actual behavior.",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.TCM.ReproSteps",
      "name": "Repro Steps",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.StateChangeDate",
      "name": "State Change Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ActivatedDate",
      "name": "Activated Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ActivatedBy",
      "name": "Activated By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ResolvedDate",
      "name": "Resolved Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ResolvedBy",
      "name": "Resolved By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The reason why the bug was resolved",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ResolvedReason",
      "name": "Resolved Reason",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ClosedDate",
      "name": "Closed Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ClosedBy",
      "name": "Closed By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Business importance. 1=must fix; 4=unimportant.",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.Priority",
      "name": "Priority",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Assessment of the effect of the bug on the project",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.Severity",
      "name": "Severity",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Work first on items with lower-valued stack rank. Set in triage.",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.StackRank",
      "name": "Stack Rank",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The type should be set to Business primarily to represent customer-facing issues. Work to change the architecture should be added as a User Story",
      "alwaysRequired": true,
      "referenceName": "Microsoft.VSTS.Common.ValueArea",
      "name": "Value Area",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The build in which the bug was fixed",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Build.IntegrationBuild",
      "name": "Integration Build",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The build in which the bug was found",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Build.FoundIn",
      "name": "Found In",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AttachedFiles",
      "name": "Attached Files",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.RelatedLinks",
      "name": "Related Links",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.LinkedFiles",
      "name": "Linked Files",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BISLinks",
      "name": "BIS Links",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    }
  ],
  "fieldInstances": [
    {
      "helpText": "The iteration within which this bug will be fixed",
      "alwaysRequired": false,
      "referenceName": "System.IterationPath",
      "name": "Iteration Path",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": true,
      "referenceName": "System.IterationId",
      "name": "Iteration ID",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.ExternalLinkCount",
      "name": "External Link Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.TeamProject",
      "name": "Team Project",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.HyperLinkCount",
      "name": "Hyperlink Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AttachedFileCount",
      "name": "Attached File Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.NodeName",
      "name": "Node Name",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The area of the product with which this bug is associated",
      "alwaysRequired": false,
      "referenceName": "System.AreaPath",
      "name": "Area Path",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.RevisedDate",
      "name": "Revised Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.ChangedDate",
      "name": "Changed Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Id",
      "name": "ID",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": true,
      "referenceName": "System.AreaId",
      "name": "Area ID",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AuthorizedAs",
      "name": "Authorized As",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Stories affected and how",
      "alwaysRequired": true,
      "referenceName": "System.Title",
      "name": "Title",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "New = for triage; Active = not yet fixed; Resolved = fixed not yet verified; Closed = fix verified.",
      "alwaysRequired": true,
      "referenceName": "System.State",
      "name": "State",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AuthorizedDate",
      "name": "Authorized Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Watermark",
      "name": "Watermark",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Rev",
      "name": "Rev",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.ChangedBy",
      "name": "Changed By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The reason why the bug is in the current state",
      "alwaysRequired": false,
      "referenceName": "System.Reason",
      "name": "Reason",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The person currently working on this bug",
      "alwaysRequired": false,
      "referenceName": "System.AssignedTo",
      "name": "Assigned To",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.WorkItemType",
      "name": "Work Item Type",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.CreatedDate",
      "name": "Created Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.CreatedBy",
      "name": "Created By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Description",
      "name": "Description",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Discussion thread plus automatic record of changes",
      "alwaysRequired": false,
      "referenceName": "System.History",
      "name": "History",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.RelatedLinkCount",
      "name": "Related Link Count",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.Tags",
      "name": "Tags",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BoardColumn",
      "name": "Board Column",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BoardColumnDone",
      "name": "Board Column Done",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BoardLane",
      "name": "Board Lane",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The size of work estimated for fixing the bug",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.StoryPoints",
      "name": "Story Points",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "An estimate of the number of units of work remaining to complete this bug",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.RemainingWork",
      "name": "Remaining Work",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Initial value for Remaining Work - set once, when work begins",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.OriginalEstimate",
      "name": "Original Estimate",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The number of units of work that have been spent on this bug",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Scheduling.CompletedWork",
      "name": "Completed Work",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Type of work involved",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.Activity",
      "name": "Activity",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Test context, provided automatically by test infrastructure",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.TCM.SystemInfo",
      "name": "System Info",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "How to see the bug. End by contrasting expected with actual behavior.",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.TCM.ReproSteps",
      "name": "Repro Steps",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.StateChangeDate",
      "name": "State Change Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ActivatedDate",
      "name": "Activated Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ActivatedBy",
      "name": "Activated By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ResolvedDate",
      "name": "Resolved Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ResolvedBy",
      "name": "Resolved By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The reason why the bug was resolved",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ResolvedReason",
      "name": "Resolved Reason",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ClosedDate",
      "name": "Closed Date",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.ClosedBy",
      "name": "Closed By",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Business importance. 1=must fix; 4=unimportant.",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.Priority",
      "name": "Priority",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Assessment of the effect of the bug on the project",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.Severity",
      "name": "Severity",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "Work first on items with lower-valued stack rank. Set in triage.",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Common.StackRank",
      "name": "Stack Rank",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The type should be set to Business primarily to represent customer-facing issues. Work to change the architecture should be added as a User Story",
      "alwaysRequired": true,
      "referenceName": "Microsoft.VSTS.Common.ValueArea",
      "name": "Value Area",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The build in which the bug was fixed",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Build.IntegrationBuild",
      "name": "Integration Build",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "helpText": "The build in which the bug was found",
      "alwaysRequired": false,
      "referenceName": "Microsoft.VSTS.Build.FoundIn",
      "name": "Found In",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.AttachedFiles",
      "name": "Attached Files",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.RelatedLinks",
      "name": "Related Links",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.LinkedFiles",
      "name": "Linked Files",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    },
    {
      "alwaysRequired": false,
      "referenceName": "System.BISLinks",
      "name": "BIS Links",
      "url": "https://dev.azure.com/fabrikam/_apis/wit/fields"
    }
  ],
  "transitions": {
    "Active": [
      {
        "to": "Active",
        "actions": null
      },
      {
        "to": "Closed",
        "actions": null
      },
      {
        "to": "Resolved",
        "actions": [
          "Microsoft.VSTS.Actions.Checkin"
        ]
      },
      {
        "to": "New",
        "actions": [
          "Microsoft.VSTS.Actions.StopWork"
        ]
      }
    ],
    "Closed": [
      {
        "to": "Closed",
        "actions": null
      },
      {
        "to": "Resolved",
        "actions": null
      },
      {
        "to": "Active",
        "actions": null
      },
      {
        "to": "New",
        "actions": null
      }
    ],
    "New": [
      {
        "to": "New",
        "actions": null
      },
      {
        "to": "Closed",
        "actions": null
      },
      {
        "to": "Resolved",
        "actions": [
          "Microsoft.VSTS.Actions.Checkin"
        ]
      },
      {
        "to": "Active",
        "actions": [
          "Microsoft.VSTS.Actions.StartWork"
        ]
      }
    ],
    "Resolved": [
      {
        "to": "Resolved",
        "actions": null
      },
      {
        "to": "Closed",
        "actions": null
      },
      {
        "to": "Active",
        "actions": null
      },
      {
        "to": "New",
        "actions": null
      }
    ],
    "": [
      {
        "to": "New",
        "actions": null
      }
    ]
  },
  "_links": {
    "self": {
      "href": "https://dev.azure.com/fabrikam/66ebcf8f-1006-4819-be8b-d420d9ecb202/_apis/wit/workItemTypes/Bug"
    }
  },
  "url": "https://dev.azure.com/fabrikam/66ebcf8f-1006-4819-be8b-d420d9ecb202/_apis/wit/workItemTypes/Bug"
}

定義

名稱 Description
ReferenceLinks

表示 REST 參考連結集合的類別。

WorkItemFieldReference

工作專案中欄位的參考

WorkItemIcon

工作專案圖示的參考。

WorkItemStateColor

工作專案類型狀態名稱、色彩和狀態類別目錄

WorkItemType

描述工作專案類型。

WorkItemTypeFieldInstance

工作專案類型的欄位實例。

表示 REST 參考連結集合的類別。

名稱 類型 Description
links

object

連結的唯讀檢視。 因為參考連結是唯讀的,所以我們只想要將它們公開為唯讀。

WorkItemFieldReference

工作專案中欄位的參考

名稱 類型 Description
name

string

欄位的易記名稱。

referenceName

string

欄位的參考名稱。

url

string

資源的 REST URL。

WorkItemIcon

工作專案圖示的參考。

名稱 類型 Description
id

string

圖示的識別碼。

url

string

資源的 REST URL。

WorkItemStateColor

工作專案類型狀態名稱、色彩和狀態類別目錄

名稱 類型 Description
category

string

狀態的類別

color

string

色彩值

name

string

工作專案類型狀態名稱

WorkItemType

描述工作專案類型。

名稱 類型 Description
_links

ReferenceLinks

連結相關 REST 資源的參考。

color

string

色彩。

description

string

工作專案類型的描述。

fieldInstances

WorkItemTypeFieldInstance[]

工作專案類型上存在的欄位。

fields

WorkItemTypeFieldInstance[]

工作專案類型上存在的欄位。

icon

WorkItemIcon

工作專案類型的圖示。

isDisabled

boolean

如果停用工作專案類型,則為 True

name

string

取得工作專案類型的名稱。

referenceName

string

工作專案類型的參考名稱。

states

WorkItemStateColor[]

取得工作專案類型的狀態資訊。

transitions

object

取得工作專案類型中的各種狀態轉換對應。

url

string

xmlForm

string

XML 表單。

WorkItemTypeFieldInstance

工作專案類型的欄位實例。

名稱 類型 Description
allowedValues

string[]

允許的欄位值清單。

alwaysRequired

boolean

指出是否一律需要域值。

defaultValue

string

表示欄位的預設值。

dependentFields

WorkItemFieldReference[]

相依欄位的清單。

helpText

string

取得欄位的解說文字。

name

string

欄位的易記名稱。

referenceName

string

欄位的參考名稱。

url

string

資源的 REST URL。