Lesson 4 of 5 Flow of Work and Traceability

Tracking Work with GitHub Projects and Azure Boards

This lesson compares the planning tools on each platform, and explains how to connect them to repositories.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe GitHub Projects views, fields and automation.
  • Describe the planning features of Azure Boards.
  • Choose a planning tool from stated requirements.
  • Explain how to combine GitHub code with Azure Boards planning.

GitHub Projects

GitHub Projects is a flexible planning surface that sits at organization or user level and can draw issues and pull requests from many repositories. A project is a table of items with custom fields. The same items can then appear in several views: a table for triage, a board grouped by status, and a roadmap showing dates. Custom field types include single select, number, date, text and iteration, and an iteration field gives a team sprint-like planning.

Automation is provided in several ways. Built-in workflows set a field when an item is added, closed or merged. Auto-add workflows bring in new items that match a filter, such as issues labelled team-payments in a repository. Auto-archive removes old completed items from view. For anything more complex, a GitHub Actions workflow can update a project through the GraphQL API.

Match the pairs

GitHub Projects features

Exam skills 1.1.3

Match each GitHub Projects feature with what it does.

Log in to try this activity Interactive activities are free with an account.

Azure Boards

Azure Boards is a fuller work management system. Its backlog hierarchy runs from Epics and Features to User Stories and Tasks. Teams plan sprints with capacity, which is the time each person has available. Delivery Plans show the schedules of several teams on one calendar, which helps with dependencies. Rules can prevent an invalid state, for example by making a field required when an item is closed, and a query language allows detailed reporting.

Azure Boards integrates with Azure Repos natively. Each work item has a Development section showing linked branches, commits, pull requests and builds. A developer can create a branch directly from a work item, and #123 in an Azure Repos commit message or pull request links work item 123.

Integrating planning with repositories

An integration succeeds when linking is the easiest behaviour for a developer. Three mechanisms provide this, and the lesson on the Boards and GitHub integration covers the configuration in full.

  • Linking syntax: #123 within GitHub links an issue, and #123 within Azure Repos links a work item. From GitHub to Azure Boards, the syntax is AB#123.
  • Automatic state changes: a closing keyword moves an item forward when a change merges, so nobody has to update the board by hand.
  • Enforcement: an Azure Repos branch policy can require a linked work item, so a pull request cannot complete without one.

The following comparison helps when a scenario asks which tool should own planning.

GitHub Projects
HierarchySub-issues and custom fields
Capacity planningNot built in
Multi-team timelinesRoadmap view
QueriesFilters and GraphQL
Governance of state changesLimited
Choose when Teams want lightweight planning beside GitHub code.
Azure Boards
HierarchyEpic, Feature, Story and Task, set by the process
Capacity planningBuilt in for sprints
Multi-team timelinesDelivery Plans
QueriesWIQL, Analytics and OData
Governance of state changesRules and inherited processes
Choose when An organization needs portfolio planning, capacity and detailed reporting.

The following diagram follows a change from a team that keeps its code in GitHub into Azure Boards.

Keeping one planning view across tools. The acquired team keeps its code in GitHub; the Azure Boards app connects its repositories to the Azure DevOps project; developers write AB# in commit messages and pull request descriptions; and each work item's Development section shows the GitHub links to the managers.
The scenario is illustrative.
Scenario questions

Linking work to code

Exam skills 1.1.3

Choose the linking syntax or setting that keeps plans connected to code.

Log in to try this activity Interactive activities are free with an account.
Worked example

Combining the tools

A product division already uses Azure Boards for portfolio planning and capacity across 25 teams. A newly acquired team stores code in GitHub and will not move it. Managers need to see which pull requests deliver each user story. What should you recommend?

Moving the code to Azure Repos conflicts with a stated constraint, and moving 25 teams to GitHub Projects would lose capacity planning. The recommendation is to install the Azure Boards app in the GitHub organization, connect the team's repositories to the Azure DevOps project, and have developers use AB# in commit messages and pull request descriptions. Each work item's Development section then shows the GitHub links, and managers keep a single planning view. Copying work items to GitHub Issues with a scheduled script would give two sources of truth and would add maintenance.

Check yourself

Which tool would show the sprint schedules of six teams on one calendar?

Show answer

Delivery Plans in Azure Boards. It displays several teams' schedules together, which helps to reveal dependencies.

Exam Tips

Remember for the exam

  • GitHub Projects spans repositories, with table, board and roadmap views.
  • Azure Boards adds capacity planning, Delivery Plans and detailed rules.
  • #123 links within a platform; AB#123 links from GitHub to Azure Boards.
  • Keep code in GitHub and planning in Azure Boards through the Azure Boards app.
  • A branch policy can require a linked work item.