> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure DevOps work item revisions

> Observe the latest reported work item revisions for one Azure DevOps Services project.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md). Bind a receiver
at `https://dev.azure.com` with the fixed path
`/ORGANIZATION/PROJECT_GUID/_apis/wit/reporting/workitemrevisions` and
the same `data` label as the mount. Seal a work-item read credential.
For a PAT, use header auth with `name: "Authorization"` and `prefix: "Basic "`. Seal the Base64 encoding of `:<pat>` as the secret. For an Entra access
token, use bearer auth.

Initialize with
`{ profile: { mode: "provider", provider: "azure-devops.work-items.revisions", limit: 10 } }`.
The feed requests the latest revisions and selected System fields with API
version 7.1. It upserts work items by ID and accepts pages of 1–100 items
and up to 36 KiB. The service's continuation token survives the last batch
and resumes the next poll on the same project. Deleted and absent work
items remain published. The feed requires the bundled parser artifact.

[Azure DevOps reporting revisions API](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/reporting-work-item-revisions/read-reporting-revisions-get?view=azure-devops-rest-7.1)

## Write work items

Follow the [native write app guide](https://docs.bijection.com/integrations/native-rest.md#native-provider-writes). Bind `providerWriter("azure-devops.work-items.create-update-delete", { endpoint: "https://dev.azure.com", auth }, data)` and pass it as `receivers.writers["azure-devops.work-items.create-update-delete"]`. Use `scope: ["ORG", "PROJECT_UUID", "Task"]` and seal a credential with work-item write access. Create and update use `{ operations: [...] }` with one to 100 JSON Patch operations, including a revision test on updates that need concurrency control. HTTP 200 must return the item ID. Delete sets `destroy=false` and accepts HTTP 200 or 204 for the requested item in the recycle bin.

The writer records its evidence under the app's `data` label. Commands take up to 24 KiB of JSON and carry no read cursor.

[Provider write API](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items?view=azure-devops-rest-7.1)

## Pipelines, builds, and pull requests

Use `providerEndpoint(mode, "https://dev.azure.com", path, auth, data)`.
Bind the returned receiver as `receivers.provider`, with the same protected label as `data`. Seal a credential scoped to the project
with build read or Git read permission as appropriate. Use the organization
name and project GUID in the reviewed route. Initialize with
`{ profile: { mode: "provider", provider: mode, limit: 10 } }`.

| Mode | Reviewed path under `/ORG/PROJECT_GUID/_apis` | Record key | Next position |
| - | - | - | - |
| `azure-devops.project.pipelines.observations` | `/pipelines` | Pipeline ID | Response continuation header |
| `azure-devops.project.builds.observations` | `/build/builds` | Build ID | Response continuation header |
| `azure-devops.project.pull-requests.observations` | `/git/pullrequests` | Pull request ID | Offset advances after a full page |

Each response is limited to 100 requested records and 36 KiB. A terminal
page restarts the sweep. Pull requests include all visible statuses, and
changes during the sweep can move records across offset pages. Missing
resources remain published. Pipeline and build modes observe work managed by
Azure DevOps.

[Pipelines](https://learn.microsoft.com/en-us/rest/api/azure/devops/pipelines/pipelines/list?view=azure-devops-rest-7.1) ·
[Builds](https://learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/list?view=azure-devops-rest-7.1) ·
[Pull requests](https://learn.microsoft.com/en-us/rest/api/azure/devops/git/pull-requests/get-pull-requests-by-project?view=azure-devops-rest-7.1)

## Work item revision history

Bind `azureDevOpsWorkItemRevisions(organization, projectGuid, itemId, auth, data)`
as `receivers.provider` under a protected label. Seal a credential that
can read the work item in the project. Use the same numeric work item ID as
text in the receiver and the initialization profile
`{ mode: "azureDevOpsWorkItemRevisions", itemId: "1", limit: 5 }`.

Read insert-only captures from `occurrences.list` or `occurrences.get`.
Each revision number identifies one event for this item. The feed
keeps the first observed payload, including the returned work item fields.
The offset advances after full pages, and a short page restarts the
sweep on the next poll. Each response accepts at most 100 revisions and 36 KiB.
[Azure DevOps revisions API](https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/revisions/list?view=azure-devops-rest-7.1)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.