Skip to content

Use Azure Boards work items

Agent Loops talks to Azure Boards through its own azureboards connector (#3804), an MCP server in the shape of the jira and linear ones: Azure Boards is a tracker. It works with Azure DevOps Services (dev.azure.com) and with your own Azure DevOps Server. Agent Loops on the Mac carries it, and every Linux host installs it beside agentsd.

It is a connector of its own, not part of the azuredevops one, so you can use Azure Boards with a repository on GitHub, or Azure DevOps Repos with Jira. Pull requests and builds are the azuredevops connector's.

A work item is an issue to Agent Loops: its tags are the issue's labels, and its id is the issue's key.

Before you start

  • An Azure DevOps organization with a project, or your own Azure DevOps Server 2022.1 or later.

Add the connector

  1. In Azure DevOps, open User settings ▸ Personal access tokens and make a token for your organization with Work Items: Read & write. If you use the azuredevops connector too, add Work Items to its token: the two connectors share AZURE_DEVOPS_TOKEN.
  2. In Agent Loops, open Settings ▸ Agent Configuration ▸ Connectors (or a folder's Connectors page) and choose Add Connector….
  3. Choose the Agent Loops marketplace, then Azure Boards, and add it.
  4. Fill in:
  5. AZURE_DEVOPS_TOKEN: the token.
  6. AZURE_DEVOPS_URL: leave it out for Azure DevOps Services. For your own server, give the address of its collections, such as https://server/tfs.
  7. AZURE_BOARDS_PROJECT: the project, as organization/project (on a server, collection/project), such as acme/Web App. Leave it out when the folder's git remote is on Azure DevOps Repos: the connector then uses that remote's project.

The values go in your own secrets (Settings ▸ You ▸ Secrets), never in mcp.json.

The tools

  • list_work_items: the project's work items, changed last first, at most 50. Open ones by default (state is open, closed or all); label (a tag), type (as Bug), area (an area path and those under it) and mine (assigned to you) narrow it.
  • get_work_item: one work item, with its description and its newest 50 comments.
  • comment_on_work_item: a comment, in Markdown.

A work item's state and its assignee are a person's to change, in Azure Boards.

The Work items page

The connector has a page of its own (#3826), in the jira connector's shape. It is a row in the folder's group of the sidebar, Azure Boards · Work items, and you can pin it.

  • The project's open work items, changed last first, at most 50, in sections: Needs you (assigned to you), Yours (made by you), Team and Others. With a control plane, Team is its people and bots, by their Azure DevOps login (see Your Azure DevOps login), a row shows the name the control plane knows them by, and the rest is Others. With no control plane, Team is the rest and there is no Others: an organization has only its members and its bots. Each row says its type, its state, its assignee, its author, its area, when it changed and its tags. The sidebar's count is the work items that need you.
  • A type, a state category (Proposed, In progress, Resolved) and tags narrow it.
  • A row expands to its description, made safe, and its Lineage section: the sessions labelled AB#12, the pull requests that name AB#12, and what they cost.
  • Start Agent opens the new-agent form, filled in: the session is labelled AB#12, and the agent is asked to put AB#12 in its branch and its pull request's title.

The page only reads. Change a work item's state or tags on the Work pages, or in Azure Boards.

Your Azure DevOps login

With a control plane, Settings ▸ Account on the Mac (Settings ▸ Control plane on the web page) keeps your Azure DevOps login, beside your GitHub, GitLab, Linear, Jira, Forgejo and Bitbucket logins. An Azure DevOps login is your sign-in email or your display name in the organization. The control plane gives the logins of all its people to the servers that draw a Team section. A machine that has Azure DevOps connected fills in your login from the connection, so you give it only when that machine is not connected.

The events

The events have the jira and linear connectors' names, so a workflow made for an issue tracker works here too:

  • issue.opened: a work item was created.
  • issue.labelled: a tag was added to a work item, one event per tag.
  • issue.commented: a comment was left on a work item.
  • issue.closed: a work item moved to a state of the Completed or Removed category (as Closed, Done or Removed). A Resolved state is not closed.
  • issue.assigned: a work item was assigned to you, the token's owner, by anyone.

Each takes area, type and label; all but issue.opened take issue (a work item's id). Unless anyone is true, a bot (a build service, a service account or a group) never counts.

On the Work pages

Work ▸ Issues lists the work items of the projects a folder names (#3815), beside its GitHub, GitLab, Linear and Jira issues. Name them in the folder's .agents/folder.json:

{ "azureBoardsProjects": ["acme/Web App"] }

Each project is organization/project (on a server, collection/project). The Work pages use the connector's AZURE_DEVOPS_TOKEN and AZURE_DEVOPS_URL, else the Azure DevOps connection.

A folder on Azure Repos does not need this by hand (#3816): once its Connectors set-up's Tasks slot reads Azure Boards, the set-up writes the project of the folder's remote there, once. It does not when the folder already names Azure Boards projects, Jira projects or Linear teams, and it does not write it again after you take it out.

A board: a team's board is one of a project's boards (Project Settings ▸ Tools ▸ Boards). Give its address, as https://dev.azure.com/acme/Web%20App/_boards/board/t/Payments (or the team's backlog, or an Azure DevOps Server's). With the board chosen, Work ▸ Issues lists the work items under the team's area paths. A team set by a field other than its area path is not read.

  • A row says the work item's state (as Active), in the colour of open or closed, and its tags. Azure Boards · acme/web app is a choice in the Repo filter.
  • A work item's page shows its description and its comments as Markdown, Open on Azure Boards, Start Agent, Labels (its tags), a comment box, and a state menu in place of Close and Reopen: the other states of its type.
  • Its plan is its children (its Child links), each in the step after its predecessors (its Predecessor links). Add child makes a new work item of the level's type (User Story, Product Backlog Item, Requirement or Issue for a story or a spike; Task; Bug), or moves one that is there (give 12, AB#12 or its page) under it. Blocked by adds or takes off a predecessor in the same organization.
  • Epics and features (#3939): an Epic work item is an epic, with no epic tag; a work item tagged epic is one too. A feature:<name> tag is the work item's feature. With a board chosen, Work ▸ Issues shows only the work items under the team's area paths.
  • Lineage: Start Agent labels the session AB#12. A session labelled AB#12, and a pull request whose title or branch says AB#12 (as Azure Boards itself links them), count towards the work item of the folder's first project.

Every write is your own click, made with your token: no approval card.

What to know

  • Events are polled once a minute, from the 50 work items changed last since the poll before. A poll that finds more says it is truncated.
  • Closed is by category, read from the project's work item types, so a process of your own with other state names works.
  • Not yet: the Tasks slot of a folder's set-up, a project's board, and a Connect Azure DevOps sheet with a sign-in.

See also