Without ZenHub, your GitHub Issues are organized in a simple list. Which Issues are related or dependent? Epics are a theme of work that contains several sub-tasks and are the best way to group related Issues together into larger goals that span Sprints (typically 2-6 weeks).
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. We do this in ZenHub by creating an Epic to map out bigger goals, then adding related GitHub Issues to flesh it out.
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.
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 ZenHub Sprints and ZenHub Epics. While they seem similar at first glance, their purpose is different. In fact, they function best when used together!
You can also 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 its 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 Sprints
One of our most common questions is how Sprints and Epics interact. Sometimes they're even confused for one another. ZenHub Sprints 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. Working in sprints move teams toward a goal of shipping business value (features) to the user. ZenHub Sprints allow teams to automate their sprint planning process. Learn more here
Since Sprints are tied to short iterations of work, 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 ZenHub Sprints, 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 Sprints 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, select the + icon next to the New Issue button located at the top right of the Board. From here you can give your Epic a title and description.
Adding Issues to your Epic
Once you have created an Epic, the best way to add Issues to your Epic is by:
1. Using multi-action on the Board
To use multi-action, hover over the avatar for any Issue card on the Board to select the Issue. From here, you can select as many Issues as you'd like and then perform updates to those Issues at once. Choose the Set Epic option to quickly add these Issues to your Epic:
2. Quickly creating new Issues from the Epic page
Select to view the Epic on the Board. You can select the + icon located below the progress bars to quickly capture scope requirements for the Epic:
Viewing your Epic on the Board
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 (Filter by Epic Issues) that can be used to filter the board by all stories and tasks in that Epic.
Quickly creating new Issues directly from the Epic page
When opening an Epic page 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 estimate, assignees, and labels. From this page, you can quickly create new Issues to capture new scope requirements that may have been surfaced. Select the + icon located below the progress bars to create Issues:
When viewing an Epic you may also see a heading named Issues not in this Workspace. Issues that are a part of the Epic but not a part of a repo in the current Workspace you are viewing will be listed here. Issues within the current Workspace will continue to be listed under their respective pipeline name.
Setting and removing Epic Dates
When viewing an Epic from the Board, you'll have the option to set both a start date and end date. You can also remove Epic dates using the calendar view:
This will automatically add the Epic to ZenHub Roadmaps which provides an at-a-glance progress report for your Epics. Learn more about getting started with Roadmaps here
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 here.
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 drill down on story or project work that's been rolled up into your newly created Epic:
How do I convert a GitHub Issue to an Epic?
If an existing story or Issue needs to be converted into an Epic, get started by opening the Issue page for that Issue. On the sidebar of the Issue is the Epics dropdown. Once selected, at the top of the dropdown is an option to Convert to Epic.
When converting an Issue to an Epic, this new Epic will be nested within any Epics the Issue was originally in.
Need to convert an Epic back to an Issue?
You can convert an Epic back to an Issue by opening up the Epic and selecting the Epics option in the Issue sidebar. You can then choose Convert to Issue:
Nested Epics and Epic lists
When you nest Epics, teams get a complete understanding of the intricate nature of how work intertwines. Developers understand how a small user story rolls up into a larger piece of work; while Project and Product Managers can track overall progress, visualize where in the workflow work is, and spur conversations around blockers, or potential roadblocks that might be impeding progress.
To create that additional layer of hierarchy and nest Epics you must :
1. Create the Parent Level Epic which represents the highest level of hierarchy
2. Create the children Epic/s which you'd like to roll up to the parent Epic
3. Add the relevant Issues to each child Epic
3. Nest the Epics by adding the children Epic/s to the parent level Epic ( see below)
Example: As seen below, we have created our nested structure by adding the children Epics ( Quarterly Release- Phase 1 and Quarterly Release- Phase 2 to the Parent Epic Q3 Release Overview:
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 of all estimated story points from all the Issues within the Epic, including any nested Epics. The Epic points completed status indicator summarizes all completed story points across the project. (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 represent the total story points of all nested Epics and Issues.