Navigation: Home > API Reference > WorkItemTrackingApi > Methods
This page provides an overview of all methods available in the WorkItemTrackingApi class, organized by category.
These methods allow you to create, retrieve, update, and delete work items.
| Method | Description | Common Use |
|---|---|---|
| ⭐ getWorkItem | Retrieves a single work item by ID | Very common |
| ⭐ getWorkItems | Retrieves multiple work items by ID | Very common |
| 🆕 createWorkItem | Creates a new work item | Common |
| 🔄 updateWorkItem | Updates an existing work item | Common |
| ⚠️ deleteWorkItem | Permanently deletes a work item | Uncommon |
These methods allow you to execute and manage work item queries.
| Method | Description | Common Use |
|---|---|---|
| 🔍 queryByWiql | Executes a work item query using WIQL | Common |
| 🔍 queryById | Executes a saved query by ID | Common |
| getQueries | Retrieves all queries for a project | Uncommon |
| getQuery | Retrieves a specific query by ID or path | Uncommon |
These methods allow you to work with work item type definitions.
| Method | Description | Common Use |
|---|---|---|
| getWorkItemType | Retrieves a specific work item type | Common |
| getWorkItemTypes | Retrieves all work item types for a project | Common |
| getFields | Retrieves all fields for a project | Uncommon |
| getField | Retrieves a specific field | Uncommon |
These methods allow you to work with work item links.
| Method | Description | Common Use |
|---|---|---|
| getRelationTypes | Retrieves all relation types | Uncommon |
| getRelationType | Retrieves a specific relation type | Uncommon |
These methods allow you to work with work item attachments.
| Method | Description | Common Use |
|---|---|---|
| createAttachment | Creates a new attachment | Uncommon |
| getAttachment | Retrieves an attachment | Uncommon |
| deleteAttachment | Deletes an attachment | Uncommon |