How I Backed Up Projects (Issues) from nulab Backlog

This article introduces the method I used to back up the data of projects managed in nulab Backlog.

nulab Backlog is simple and easy to use, but when a project becomes large, the issue hierarchy is limited to only two levels, which sometimes makes you want to migrate to another project management tool. In such cases, even if you don’t plan to import Backlog data into another tool, it is reassuring to have a full copy of the project in case you later need to refer to past descriptions. However, simply searching and saving issues does not save attachments. Therefore, I use Python to back up the attachments together.

Environment

  • Python

Code

First, save the project information and API Key in backlog_credential.py.

Then run the following program. This will save issues, comments, and attachments as JSON.

This was created around 2024 and is based on the Backlog API at that time.

The function backup_project allows you to pass the backup destination directory as the second argument.