Azure DevOps · Schema

WorkItem

An Azure DevOps work item (Bug, Task, User Story, etc.)

AgileCI/CDDevOpsProject ManagementVersion Control

Properties

Name Type Description
id integer Unique numeric identifier of the work item
rev integer Revision number of the work item (increments on each update)
fields object Dynamic map of field reference names to values. Common fields include System.Title, System.State, System.AssignedTo, System.Description, System.WorkItemType, System.AreaPath, System.IterationPath, etc
relations array Links and relations to other work items or external resources
_links object HAL links for navigating related resources
url string URL to access this work item via the REST API
View JSON Schema on GitHub

JSON Schema

microsoft-azure-devops-workitem-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/WorkItem",
  "title": "WorkItem",
  "type": "object",
  "description": "An Azure DevOps work item (Bug, Task, User Story, etc.)",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique numeric identifier of the work item",
      "example": 42
    },
    "rev": {
      "type": "integer",
      "description": "Revision number of the work item (increments on each update)",
      "example": 3
    },
    "fields": {
      "type": "object",
      "description": "Dynamic map of field reference names to values. Common fields include System.Title, System.State, System.AssignedTo, System.Description, System.WorkItemType, System.AreaPath, System.IterationPath, etc.\n",
      "additionalProperties": true,
      "example": {
        "System.Title": "Fix login button alignment",
        "System.State": "Active",
        "System.AssignedTo": "User Name <[email protected]>",
        "System.WorkItemType": "Bug",
        "System.TeamProject": "MyProject",
        "System.AreaPath": "MyProject\\\\Frontend",
        "System.IterationPath": "MyProject\\\\Sprint 5"
      }
    },
    "relations": {
      "type": "array",
      "description": "Links and relations to other work items or external resources",
      "items": {
        "$ref": "#/components/schemas/WorkItemRelation"
      }
    },
    "_links": {
      "type": "object",
      "description": "HAL links for navigating related resources",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL to access this work item via the REST API",
      "example": "https://dev.azure.com/myorg/myproject/_apis/wit/workItems/42"
    }
  }
}