With the Azure Boards integration, you can track mabl results in Azure DevOps:
- Create work items from failed mabl test runs, link tests to existing work items, and build new mabl tests from work items. See Work with Azure Boards work items.
- Record plan run results on the Test Cases in an Azure test plan, and keep the Automation status of linked Test Cases up to date. See Record mabl results in Azure Test Plans.
This article explains how to connect mabl to Azure Boards, configure the integration, and reconnect it when the connection stops working.
Set up the integration
Before you start
You need the following to connect Azure Boards:
- An Azure DevOps organization hosted at
https://dev.azure.com/{organization}and connected to Microsoft Entra ID, so that people sign in with work accounts. Azure DevOps Server, the on-premises product, isn't supported, and organizations that use only personal Microsoft accounts aren't expected to work. - A Microsoft account with normal access to the Azure DevOps project you want to use. Basic access and the Contributor role are enough to create work items. mabl acts on behalf of this account, so the work items it creates show that account as the creator.
- Depending on your organization's Microsoft Entra settings, an administrator may need to approve mabl before anyone can connect. See Ask an administrator to approve mabl.
Use a dedicated account
Work items that mabl creates show the account that connected the integration as their creator. For that reason, we recommend connecting with a dedicated user rather than a personal account. A dedicated user also keeps Azure DevOps rate limits from counting against a teammate's account, and the integration keeps working when someone leaves the company or their account is disabled.
Connect Azure DevOps
- In the mabl app, go to Settings > Integrations.
- In the Available integrations section, find Azure Boards and click Connect.
- Sign in with your Microsoft account and review the permissions that mabl requests. mabl asks to read and write work items, to read and write test management, which recording results in Azure Test Plans uses, to read projects and teams, and to read builds. It doesn't ask for full access to your organization. The access stays active so you don't have to sign in again.
- Click Accept. Microsoft returns you to mabl, on the configure form for the new integration.
If Microsoft refuses the sign-in, mabl shows Microsoft's reason. The most common one is that your organization requires an administrator's approval.
Ask an administrator to approve mabl
mabl is a verified publisher, and the permissions it requests are ones that a regular user is allowed to approve. Whether you can approve them yourself depends on your organization's Microsoft Entra policy. In organizations that let people approve applications, you approve mabl the first time you connect and move straight on to the configure form.
Many organizations don't let users approve applications. If you see a "Need admin approval" page when you try to connect, mabl shows you a ready-made approval link on a page titled Ask your administrator to approve mabl.
- Click Copy approval link and send the link to a Microsoft Entra administrator in your organization.
- The administrator opens the link, signs in, and approves mabl. They don't need a mabl account. Once they approve, they see a confirmation that mabl is approved.
- Go back to Settings > Integrations and click Connect again. This time the sign-in completes and you land on the configure form.
The approval covers your whole organization, so one approval is enough for every mabl workspace that connects Azure Boards.
Configure the integration
After you sign in, the configure form in the mabl app asks which project the integration should use:
- Give the integration a name. The default name is "Azure Boards".
- Enter the Organization URL in the form
https://dev.azure.com/{organization}. If you paste the URL of a project or a board instead, mabl reduces it to the organization. - Choose the Project. The list shows the projects that your Microsoft account can see. Each integration connects to one project. To file work items in another project or another organization, add a second integration.
- Choose the Default work item type. mabl suggests the project's bug type, whatever your process calls it. A project on the Basic process has no Bug type, so mabl suggests Issue there. New work items open on this type, and you can pick a different type each time you create one.
- Under Work item fields, review which fields the new issue form shows for each work item type. See Choose fields and default values.
- Optional: if you plan to record mabl results in Azure Test Plans, configure the following additional settings:
- Test Cases: choose when mabl updates the Automation status of linked Test Cases.
- Results sync: choose the default test plan that mabl records plan run results in. Each mabl plan can also choose its own test plan. See Record mabl results in Azure Test Plans for more details.
- Click Save.
The integration appears in the Active integrations section on saving. If you want to connect to multiple Azure DevOps projects, add an integration for each project you file work items in.
Choose fields and default values
Azure work item types can carry dozens of fields, and most of them aren't things a person filing a bug should have to think about. Under Work item fields on the configure form, you decide, for each work item type, which fields the new issue form shows and what values they start with. mabl already leaves out the fields that Azure DevOps maintains itself, such as State, Reason, and the audit stamps.
- Pick a Work item type. The table lists every field that mabl can set for that type. Required fields carry a Required badge.
- To omit a field from the new issue form, turn off the Shown toggle. A required field can only be hidden if it has a default value because Azure DevOps won't accept the work item without one.
- To pre-fill a field, enter a Default value. For fields with a fixed set of values, such as Priority, choose from the list. For Area Path and Iteration Path, start typing to pick from the project's paths. Fields with default values are not required on the form, and a field with a default and only one possible value is hidden since there's nothing to choose.
- To drop every custom field at once, click Hide all custom fields. Required custom fields without a default stay visible.
- Repeat for each work item type your team files from mabl, then click Save.
New integrations start with a Tags default of mabl on the default work item type, so work items filed from mabl are easy to find in Azure Boards. Remove the default before saving if you don't want the tag.
mabl checks these settings against your Azure DevOps process every time the form opens, so a change in Azure DevOps doesn't quietly break it:
- If a hidden field becomes required in Azure DevOps and has no default, the form shows it again.
- If a default is no longer valid, such as a value removed from a picklist, mabl drops the default and shows the field.
- Settings for a type, field, or value that no longer exists in Azure DevOps are listed on the configure form as removed when you save.
Edit, reconnect, or remove the integration
To edit the integration, find it in the Active integrations section and click on the pencil icon. Changing the project clears the field settings, because they belong to the old project's process. To sign in to Microsoft again, click Reconnect. See When the connection stops working.
To remove the integration, click on the trash icon in its row and confirm. Tests keep their linked issues, but you can no longer file or link work items from mabl, or build tests from work items. Nothing changes in Azure Boards.
When the connection stops working
The Microsoft connection behind an integration can stop working. Microsoft expires it when it goes unused for about 90 days, when the connecting account's password is reset, or when an administrator revokes mabl's access. When that happens, creating a work item fails with a message asking you to reconnect the integration.
To reconnect:
- Go to Settings > Integrations and click on the pencil icon for the Azure Boards integration.
- Click Reconnect and sign in with your Microsoft account. The account needs to see the integration's project. It doesn't have to be the account that connected originally.
- Back on the form, the message "Signed in to Azure DevOps again" confirms the new connection. Click Save.
Reconnecting keeps the integration's work items and field settings as they are. It only replaces the sign-in.
Limitations
- Only Azure DevOps Services at
dev.azure.comis supported. Azure DevOps Server isn't. - mabl shows only "Open" and "Closed" for linked work items.
If any of these limitations impact your team's workflow, please share your feedback in the mabl Product Portal.