Skip to main content

Azure DevOps for the Leanmote Agent

Connect your Azure DevOps account so the agent can update work items and pull requests, as you.

With this connection the Leanmote Agent can act on Azure Boards work items and on Azure Repos pull requests. It is separate from the Azure DevOps integration, which reads projects for Context; see Azure DevOps integration.


​

The agent never acts on its own: each action is proposed in Leanmote and runs only after a person approves it.


​

What the agent can do


​

On work items (Azure Boards):


​

  • Close an item — vso.work_write.

  • Assign an owner — vso.work_write.

  • Comment on an item — vso.work_write.

  • Move an item to another status — vso.work_write.

  • Add a label — vso.work_write.

  • Link two items — vso.work_write.

  • Create an item — vso.work_write.

  • Mention someone on an item — vso.work_write.

  • Update priority, due date or estimate — vso.work_write.

  • Split a large item into smaller ones (up to 10) — vso.work_write.

  • Take open items out of a sprint — vso.work_write.

  • Set the WIP limit of a board column — vso.work_write. Azure DevOps only accepts it from a team admin.


​

On pull requests (Azure Repos):


​

  • Comment on a pull request — vso.code_write.

  • Close a pull request — vso.code_write.

  • Request a reviewer — vso.code_write.

  • Add a label — vso.code_write.

  • Mention someone — vso.code_write.

  • Set the default reviewers of a repository — vso.code_write.

  • Mark a pull request as draft — vso.code_write.


​

The agent does not merge or review pull requests on Azure DevOps.


​

Connect


​

  1. Open the Actions Hub and go to the Your agents tab.

  2. In Connections, click Azure DevOps and then Authorize Azure DevOps.

  3. Sign in to Azure DevOps with your own account and accept the permissions listed below.

  4. Back in Leanmote, choose the Azure DevOps organisations where the agent may act, and click Grant access.


​

The connection reaches everything your Azure DevOps account reaches: Azure DevOps does not let it be narrowed when you authorize it. What you choose in step 4 is what Leanmote lets the agent act on.


​

Connection details


​

Detail

Value

Connection type

OAuth 2.0 with Microsoft Entra ID, through the multi-tenant Leanmote Agent app.

Who connects in Azure DevOps

Each person, with their work account. Depending on your Microsoft Entra tenant's policy, an admin may have to grant consent once.

Who can connect in Leanmote

Any member, for their own account.

Credential

Personal: the agent acts as you. One connection for each Azure DevOps organisation you choose.

Write access

Yes: work items and pull requests.


​

Scopes requested


​

  • vso.work_write — every work item action and the WIP limit.

  • vso.code_write — every pull request action. Azure DevOps has no narrower scope for commenting on a pull request.

  • offline_access — refresh the access token so the connection keeps working without signing in again.


​

Disconnect


​

  • In the Actions Hub, under Connections, click Manage. In Agent connections, click Disconnect next to Azure DevOps and confirm. The agents stop using it.

  • To remove the access on Azure DevOps's side as well, revoke the Leanmote Agent app from the authorized or connected apps of your Azure DevOps account.


​

Related articles


​

  • Leanmote Agent connections

  • Azure DevOps integration

Did this answer your question?