Azure DevOps
Connect Azure DevOps to file Cofactor issues as work items, close issues when the work item closes, and start tests by tagging one.
Connect Azure DevOps and a Cofactor issue can become a work item in one step. When the work item closes, Cofactor closes the issue. When it reopens, the issue reopens.
Connect Azure DevOps
An organization admin connects Azure DevOps with a Microsoft account that can see the project and create work items in it.
- Open Settings, then Azure DevOps.
- Select Connect with OAuth, sign in with Microsoft and approve the access.
- Under Default Settings, pick a Default Project and a Default Work Item Type. Add a Default Area Path (optional) if you want one. Select Save Settings. New work items use these, and status sync needs the default project.
File a Cofactor issue as a work item
Open the issue and select Create Azure DevOps Ticket in the drawer, or run the command. The work item links back to the issue.
cofactor tickets file <issue id> --provider azureDevops
If Azure DevOps is the only tracker you connected, --provider is not needed. See Issues.
Close issues from work items
Cofactor sets up a webhook once a default project is saved. When a work item moves to a closed state, the linked issue closes. Webhooks Active shows beside Connected when the webhook is in place.
Closing a Cofactor issue does not close its work item. To close a work item from the CLI, run this command.
cofactor tickets close AB#12 --provider azureDevops --reason "Fixed in the latest build"
Start a test by tagging a work item
Under Tag-Triggered Runs, set a Trigger Tag, and a Target Application if you have more than one application, then select Save Tag Trigger. When someone adds that tag to a work item in Azure DevOps, Cofactor starts a test for it. With several applications and none picked, tagged work items are skipped.
Check it worked
In Settings, Azure DevOps, the Connected badge and Webhooks Active show. File one issue as a work item and open it in Azure DevOps.
Fix a problem
| Symptom | What to check |
|---|---|
| The project you need is not listed | Sign in with the Microsoft account that has access to that project, then connect again. |
| Filing fails | The connected account needs permission to create work items in the project. The work item type and area path must exist in it. |
| Webhooks Active does not show | Pick a default project and save, since status sync needs one. |
Go deeper
Feature preferences.
The Azure DevOps page has a Feature Preferences card where an admin turns each capability on or off.