Get multiple work items
get_work_itemsRetrieve multiple TFS work items by IDs in a single batch request. Select fields, expand relations, and omit missing items without failing the whole call.
Instructions
Read many work items in one call (uses the workitemsbatch API, chunked by 200 ids). Missing ids are reported in failed instead of failing the whole request (errorPolicy=omit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Work item ids | |
| expand | No | Which extra data to expand when `fields` is not given. | all |
| fields | No | Restrict returned fields to these reference names (e.g. System.Title, System.State). When omitted, all fields plus relations are returned. | |
| format | No | How to return rich-text fields (Description, Repro Steps, comments): converted to plain text/markdown, or raw HTML. | text |
| project | No | Team project name or id. Overrides TFS_DEFAULT_PROJECT. Work items and repos may live in different projects. | |
| errorPolicy | No | omit: skip missing ids; fail: whole call fails if any id is missing. | omit |
| includeComments | No | Also fetch comments for every item (one extra request per item). |