Brainstorming: do you have any plans (or would it be useful) to integrate with Github's projects/tasks management?
Since your workflow is already using several principles from github's project management system, would it be possible to integrate it fully?
- tasks/issues
- milestones
- projects
- assignees etc
In this way, we could directly access an overview of the state of the current project from github, without needing to run the web ui.
I guess the added benefit of this would be to have a better workflow on the go while using github's existing infrastructure.
I ran this idea through Gemini first:
That's an excellent and very insightful question, and it gets right to the heart of the philosophy behind Backlog.md while also highlighting a powerful potential future direction. As the creator, this is a topic I've thought about quite a bit.
You are absolutely right that Backlog.md's workflow intentionally mirrors many of the core principles of GitHub's own project management system. Here’s a breakdown of how a full integration could work, and the significant positives and negatives of such an approach.
How a Full Integration with GitHub Projects Would Work
A "full" integration would mean creating a bi-directional sync between the local backlog/ directory and GitHub's online ecosystem (Issues, Projects, Milestones). This would likely be accomplished via a CLI command (backlog sync) or a GitHub Action that runs on every push.
- Tasks/Issues: A Backlog.md task file (
task-123.md) would correspond to a GitHub Issue (#123). Creating a task locally would open a new issue on GitHub, and vice-versa. Comments on the issue could even be synced back to the task's Markdown file. - Assignees: The
assignee:field in the Markdown frontmatter would sync with the "Assignees" on the GitHub Issue. - Milestones: The
milestone:field would sync with GitHub Milestones, allowing progress tracking on GitHub's milestone view. - Projects: Each task/issue would be automatically added as an item to a specific GitHub Project board. The task's
status:(e.g., "To Do", "In Progress") would correspond to a column on that board. Dragging a card on the GitHub Project board would update thestatusin the local Markdown file on the next sync.
This would achieve exactly what you're asking for: a real-time overview of the project's state directly on GitHub, using its native interface.
The Positives of Full Integration
This approach would offer several powerful benefits, many of which you've identified:
- Centralized Visibility & Collaboration: This is the biggest win. Anyone with access to the GitHub repository could see the project's status, board, and open tasks without needing to clone the repository or use the CLI. This is huge for collaboration with non-technical team members (PMs, designers, stakeholders).
- Leveraging GitHub's Rich UI and Automation: We could tap into the powerful features of GitHub Projects, as shown in the video you linked: custom fields, different board layouts (Kanban, spreadsheet), built-in automation rules, and burn-down charts. Backlog.md wouldn't need to reinvent these features.
- Seamless Issue/PR Linking: The connection between work items and code would become even stronger. Closing a PR could automatically update the local task file to "Done", and all of GitHub's existing "linked issue" functionality would work out of the box.
- Mobile and On-the-Go Access: You could manage your backlog from the GitHub mobile app, and the changes would sync back to your repository's Markdown files. This directly addresses your point about a better workflow on the go.
The Negatives and Philosophical Challenges
However, this deep integration comes with significant trade-offs that challenge the core philosophy of Backlog.md.
- Loss of the "Offline-First" Principle: The biggest drawback is that the tool would lose its "100% private & offline" nature. It would become dependent on an internet connection and the GitHub API to function correctly. The simplicity of just editing a local Markdown file would be replaced by a more complex system that needs to be "synced."
- The "Source of Truth" Problem: This is the most difficult technical challenge. If a task can be updated in a local Markdown file and on the GitHub Issue, which one is the source of truth? What happens if you edit a task's description offline, while a colleague updates the corresponding issue on GitHub? Handling these sync conflicts is incredibly complex and can lead to data loss if not managed perfectly.
- Increased Complexity: The tool's beauty is its simplicity. A full sync engine would require handling authentication (GitHub tokens), API rate limits, network failures, and the complex logic of a bi-directional sync. This adds many potential points of failure.
- Loss of Privacy and Portability: One of Backlog.md's key features is that your tasks live entirely inside your repository and are never sent to a third-party server. A GitHub integration would mean your task data is stored on GitHub's servers. It also ties the tool specifically to GitHub, losing its repository-agnostic nature (it works just as well with GitLab, Bitbucket, or a private Gitea server).
A Potential Hybrid Solution: The Best of Both Worlds
Instead of a full bi-directional sync, a more practical and robust integration could be a one-way, Git-to-GitHub sync using GitHub Actions.
This is how it would work:
- The source of truth would always be the Markdown files in your repository.
- A GitHub Action would trigger on every push to your main branch.
- The Action would run a script that scans the
backlog/tasks/directory. - For each task file, it would use the GitHub API to:
- Create a corresponding GitHub Issue if one doesn't exist.
- Update the title, body, labels, and assignees of the existing issue to match the Markdown file.
- Move the issue to the correct column on a GitHub Project board based on its
status.
With this model, you get the visibility on GitHub that you're looking for, but you retain the simple, offline-first, Git-native workflow of Backlog.md. The workflow remains: edit your local files, push to Git, and let automation handle the rest. This avoids the complexities and conflicts of a two-way sync.
I did already thought about a sync between local tasks and github issues/project.
I like the idea but as this is quite complex to make it right and the main focus of backlog is offline first, it will have to wait a bit.
Totally understand. But cool that you are considering it. And indeed, chatting with Gemini I realized it might not be straight forward at all to implement this.
I already started building something similar, but as @MrLesk says it could be complicated.
I hope to have a working version for Jira this week (I thought I was ready but not yet 😬)
See this issue and the linked PR and repo: https://github.com/MrLesk/Backlog.md/issues/392
Later edit: I didn't really have much time and initially I started using sooperset MCP for Jira. But I really didn't find more time to work on this. So I don't want to get your hopes up on the JIRA integration
Something simple you might do, you could have a github action respond to issue events and tell an LLM to update backlog issues based on the issue event.
I imagine one can either implement this integration using the "Projects" toolset under the official Github MCP Server Tools or this third-party one rather than directly via the GitHub GraphQL APIs, yes?
Alex's Agent: GitHub Projects/Issues sync is a major integration and source-of-truth design problem, outside the current project scope. Closing as deferred; future work should start with a narrowly scoped one-way sync/action design if the owner wants it.
I do have a similar consideration for this in the plans for my copy. But its clearly a bigger ask.