cmd/bd/ado*.go and internal/ado/.
This guide covers all configuration options for the bd ado sync command, which synchronizes beads issues with Azure DevOps work items.
Proxied-server mode: bd ado sync, bd ado status, and bd ado projects
are not supported when bd is connected to a proxied server (error:
ado <command> is not supported in proxied-server mode); run them from a
workspace with direct database access.
Quick Start
Connection Configuration
¹ Either
ado.org or ado.url must be set. Use ado.url for on-premises Azure DevOps Server.
² At least one project must be configured via ado.project or ado.projects. When both are set, ado.projects wins.
Config vs env var precedence: Config keys (set via bd config set) take priority over environment variables.
ado.url must use https://; plain http:// is accepted only for
localhost, 127.0.0.1 and ::1 (error: HTTPS required for ADO connections).
ado.pat is a secret key stored in config.yaml (per-repo or user-global),
never the shared database, so the PAT cannot leak via dolt push.
On-Premises ADO Server
For Azure DevOps Server (on-prem), useado.url instead of ado.org:
Multi-Project Sync
Sync across multiple projects in a single command:TeamProject IN (...) for multi-project support.
Filter Configuration
Filters control which ADO work items are included in sync operations.
CLI flags override config values for that sync run. On pull, the filters
narrow the WIQL query; on push, the type and state filters (from the flags or
from config) also filter which local beads are pushed.
WIQL query example (generated from filters):
[System.ChangedDate] >= 'YYYY-MM-DD'. WIQL
compares that field with a date-only literal, so the window is the whole UTC
day of the last sync, and items changed earlier that day are fetched again.
Default Mappings
Priority Mapping
Priority mapping is bidirectional but lossy for P3/P4:Note: Beads P3 and P4 both map to ADO priority 4, and a pull always maps ADO 4 back to beads P3, even in the database that pushed it. Nothing stores the original priority, so a P4 bead that has been pushed becomes P3 the next time a pull reads its work item back. That is usually the first pull after the push, even when nothing changed in ADO.For Bug-type work items, ADO also requires a Severity field:
Status Mapping
On pull, the default reverse mapping also maps
Resolved → closed; unknown
states map to open. A custom ado.state_map.* value is matched
case-insensitively before the defaults.
Blocked status: ADO has no native blocked state. beads maps blocked to Active and adds a beads:blocked tag. On pull, Active + beads:blocked tag restores StatusBlocked.
Override defaults for your process template:
Type Mapping
Reverse mapping (ADO → beads) also recognizes:
Product Backlog Item→feature(Scrum template)Issue→task
ado.type_map.* value is matched case-insensitively first; the
defaults still apply to the types it does not name, and any other ADO type
maps to task.
Override for your process template:
Process Template Configuration
ADO supports multiple process templates with different work item types and state transitions. The defaults assume the Agile template. Override mappings for other templates.Agile (Default)
No configuration needed. Default mappings work out of the box. State transitions:Scrum
CMMI
State Transition Handling
When creating a work item whose target state is not an initial state (New, To Do or Proposed; e.g., pushing a closed issue), beads:
- Creates the item without a state, so ADO puts it in the type’s initial state
- Tries a direct update to the target state
- If ADO rejects that with a 400, walks the known transition path for the work item type
- Example: Creating a closed Bug →
New → Active → Resolved → Closed
Feature and Issue),
Scrum Product Backlog Item from New, Task from To Do (via
In Progress), Issue and Epic from To Do (via Doing), and CMMI Bug,
Task and Requirement from Proposed. There is no known path for other
type/state pairs (for example a Scrum Bug); a rejected direct update then
fails with no known transition path. Updates to existing work items set the
state directly.
When the transition fails, the new work item stays short of its target state
(in its initial state when no path is known), and the push reports an error
that names the work item but does not link the bead to it. Each later push of
the bead creates another such work item, and a pull can import each one as a
new bead. To clean up, delete the extra work items in ADO and any beads a pull
created for them, and keep the bead out of the push until its status maps
(ado.state_map.*) to a state ADO can reach from the item’s initial state.
Sync Options
Direction
Conflict Resolution
When the same issue has been modified both locally and in ADO:Additional Flags
--issues and --parent narrow the work items and beads synced, but not the
dependency-to-relation pass that runs after a push: it still writes ADO
relations for every linked bead.
Reconciliation
A reconciliation scan re-checks work items beads already tracks, so items deleted in ADO (404) or no longer readable (403) are detected instead of lingering. It does not run on every sync — that would cost an API call per tracked item — so it runs periodically, and--reconcile forces it immediately.
ado.syncs_since_reconcile also appears in config: it is the counter beads keeps
to know when the next scan is due, not a setting to edit.
PAT Permissions
The Personal Access Token needs these scopes:
Generate a PAT at:
https://dev.azure.com/{org}/_usersettings/tokens
Metadata Preserved
A pull stores this ADO metadata on each bead it creates or updates, for round-trip fidelity:Description Conversion
- Push (beads → ADO): Markdown converted to HTML
- Pull (ADO → beads): HTML converted to Markdown
Tags and Labels
- ADO tags are semicolon-separated; beads labels use arrays
- User labels round-trip through ADO tags
- Internal
beads:*tags (e.g.,beads:blocked) are filtered on pull — they don’t appear as user labels
API Limits
400, 401, 403 and 404 responses are never retried.
Troubleshooting
Common Errors
ado.pat not configured: set via 'bd config set ado.pat <token>' or AZURE_DEVOPS_PAT env var
ado.org not configured: set via 'bd config set ado.org <org>' or AZURE_DEVOPS_ORG env var
ado.state_map.* config matches your actual process template.
Type not found errors
Verify your ado.type_map.* config matches the work item types available in your project. Use --types filter to restrict which types are synced.