Setting up your first ZenHub Epic

Using Epics for GitHub Project Management

Before adding ZenHub, your GitHub issues are organized in a simple list. Which issues are related or dependant? “Epics” are one of the most powerful tools for planning and executing on software releases and answering these questions.

ZenHub Epics are, to put it simply, a theme of work that contain sub-tasks required to complete the larger goal. The concept stems from the agile principle that tasks should be broken down into small, manageable chunks; that way, you're able to ship impactful changes more often and ultimately gain more control over the release cycle. In agile development, a “user story” is the smallest unit of work, and an Epic is essentially a “big” user story.from-issues-to-epics

We do this in ZenHub by creating an epic to map out bigger goals, then adding related GitHub issues to flesh it out.

Below, you'll learn how to combine Epics, GitHub issues (user stories), markdown checklists (sub-tasks), and GitHub milestones to ship better software with less overhead.

What's in an Epic?

Three main concepts work together to form an epic. In agile, we know these as Epics, User Stories and Sub-tasks. In GitHub and ZenHub these concepts are reflected as Epics, GitHub issues, and Markdown Checklists.epic-in-github

Epics help bring together tasks to form a more powerful GitHub issue management system. This helps you plan and execute your product backlog and sprint work more effectively.

But first, a note on GitHub milestones and Epics. While they seem similar at first glance, their purpose is different. In fact, they function best when used together!

You can also set up Learn more about agile concepts in GitHub and ZenHub to master your ZenHub workflow.

Epic or GitHub issue?

Not sure whether a GitHub issue should become an epic instead? First, consider the time it takes to complete a task and it's complexity: issues should be completed in the smallest amount of time possible. If an issue will take weeks or months to finish, it should probably be an Epic.

Likewise, if an issue is too complicated (if multiple tasks are required to finish it), it's probably better as an Epic. Splitting tasks into easily completed pieces of work will help you ship valuable changes more often and reduce technical debt.

The difference between Epics and Milestones

One of our most common questions is how Milestones and Epics interact. Sometimes they're even confused for one another. Milestones and Epics aren't interchangeable; in fact, they work best when used together.

In an agile framework, a sprint is typically 2-4 weeks of work with a goal of shipping workable code by the end. These iterative changes are a cornerstone of agile development. In GitHub, Milestones take the place of sprints. Sprints move teams toward a goal of shipping business value (features) to the user. In GitHub, milestones are how we plan and execute sprints. So remember, when we talk about GitHub milestones, we're talking about

Since milestones are tied to sprints, they contain issues related by time, and not necessarily related by subject. The scope of work is fixed once a sprint begins.

In contrast, Epics contain issues related in subject, and the scope is flexible. Issues can be added or removed as teams discover more about the bigger goal.

Epics are intended to give you a broad understanding of larger initiatives. When paired with Milestones, you’re able to work towards these bigger goals in manageable iterations. This means you deliver more business value (e.g. workable code) more frequently. Pairing Milestones with Epics gives you a granular way to plan and achieve your product backlog. It clarifies both the big picture and the minute details that make it up, providing everything necessary to ship better projects faster.

Creating Epics in ZenHub

To create Epics in ZenHub, get started by creating a New Issue. The New Issue button is how you create both tasks, as well as Epics. At the bottom of the new issue creator is an option to submit as a new issue or create an Epic. Select Create an Epic to great a bundle of work and move to the Epic builder.create-new-epic

Once you create an Epic, you enter the Epic builder. The list presented will display all issues within your Board, orgnized by pipeline. You can add issues already existing in your workspace by selecting the checkbox next to each issue. Navigate between pipelines by clicking on their name on the navigation to the left of the list, or leverage the top filters to search for specific issues by label, milestone, or assignee.

You can also rapid-add new issues to this Epic by adding a title into the top Title bar and hitting enter, or clicking New Issue.

The left panel will begin to populate with the issues you're adding to this Epic. You can add or remove to the Epic at any time from the Board or the issue sidebar. When you're done with the initial setup of your Epic, simply click Create Epic on the left panel.epic-creator

Once created, you'll now have a new issue on your Board with two distinguishing factors: a Epic label and a filter on the issue card (Show all issues in this Epic) that can be used to filter the board by all stories and tasks in that Epic.epic-on-the-board

When opening the Epic from the Board, you'll get a new list view that will show all stories and tasks within the Epic, which pipeline they are currently in, as well as associated information for these issues such as their title, ID, and estimated story points.

At the top of the Epic is also a progress bar. There are two bars: one for issues completed and another for story points completed. Learn more about estimating issues with ZenHub

As you start to interact with issues, complete work, and go about daily activities such as stand-up or daily to-do planning, you can leverage the Board Epic filter to drilldown on story or project work that's been rolled-up into your newly created Epic.epic-filtering-on-the-board

Nested Epics and Epic lists

Plan for multiple projects, add various levels of tasks grouped together, and have everything ordered in the same view as your Board. Epic lists are designed to provide information on where each issue assigned to an epic sits in relation to each other, across your pipelines.nested-epics-and-story-points

This makes it easy to tackle roadblocks, focus on what's up next, and visualize what other Epics are impacting project progress. When viewing an Epic, if there's a nested Epic, it will default to being collapsed within the list view. Simply click on Show epic issues to view all issues belonging to the nested Epic.

Epic points vs. story points

Epic points are the sum off all estimated story points from the issues that are within the epic points completed status indicator will take the sum of all issues across all nested epics to provide an overview across all projects grouped together. (Learn more about story points and estimates here).

Epic points give a summary of complexity of all issue estimations that belong within a single epic. At the top of the parent epic, the epic points completed indicator will roll-up all estimated issue points across all nested epics/issues.nested-epics-and-story-points