如何从 Bitbucket 备份问题列表?
对于在 Bitbucket 上收集的问题,我希望有一种方法可以收集并备份它们,以防我需要离线副本,或者不再使用 Bitbucket 或其他东西。该网站不提供此项服务。我可以使用替代机制吗?
With issues gathering on bitbucket, I'd like to have a way to gather and back them up in the event that I need an offline copy, or no longer use Bitbucket, or something else. The site doesn't offer this service. Is there an alternative mechanism I can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
从现在开始,您可以导入/导出您的问题:
转到:->管理->导入/导出
Youtube 视频:Bitbucket 问题导出
From now on you can Import/Export your Issues:
Goto: -> Administration -> Import/Export
Youtube-Video: Bitbucket Issue Export
您可以通过 Bitbucket API 获取问题。
以下是获取我的一个项目的问题的示例 URL:
https://api.bitbucket.org/1.0/repositories/christianspecht /bitbucket-backup/issues/
但是,这会返回 JSON 格式的问题列表。
我怀疑您是否可以使用 JSON 中的问题列表做任何有用的事情,但我不知道是否有更好的问题文件格式。
我刚刚在 StackOverflow 上问过这个问题,因为我现在正在处理同样的事情:
是否有标准文件格式用于从问题跟踪器导出问题?
You can get your issues via the Bitbucket API.
Here is an example URL to get the issues for one of my projects:
https://api.bitbucket.org/1.0/repositories/christianspecht/bitbucket-backup/issues/
However, this returns a list of the issues in JSON format.
I doubt that you can do anything useful with a list of issues in JSON, but I don't know if there's a better file format for issues.
I just asked exactly that here on StackOverflow, because I'm dealing with the same thing at the moment:
Is there a standard file format for exporting issues from an issue tracker?
全面披露我是 Issue2Markdown 的作者,因为我真的需要它。
如前所述,您可以通过转到“设置”->“问题”->“导入和导入”来从 Bitbucket 项目导出问题。导出并下载生成的 ZIP 文件。
在该 ZIP 文件中,您将找到 JSON 文件和附件存档。您可以将它们导入到其他问题存储库中。或者,如果您像我一样,您可能正在与一个不愿意使用问题跟踪器并希望能够阅读问题的人类可读版本的远程团队合作。
这就是 Issue2Markdown 的用武之地。您可以使用它将问题呈现为单个 Markdown 文档。您可以在版本下找到适用于 Linux、Windows 和 MacOS 的预构建二进制文件。
我希望这能帮助下一个找不到解决方案的人。
Full disclosure I am the author of Issue2Markdown because I really needed it.
As mentioned previously you can export your issues from Bitbucket project by going to Settings->Issues->Import & Export and then downloading the resultant ZIP file.
Inside that ZIP file, you will find JSON file and attachments archive. You can import those into some other issue repository. Or if you are like me you may be working with a remote team that is reluctant to use an issue tracker and would like to be able to read a human-readable version of the issues.
That is where Issue2Markdown comes in. You can use that to render your issues as a single Markdown document. You can find pre-built binaries for Linux, Windows, and MacOS under releases.
I hope that helps the next person who could not find the solution.
目前似乎没有任何方法可以导出您的问题:(
There doesn't currently appear to be any way to export your issues :(
您可以从存储库中的
设置
导出问题。然后下载并解压 zip 文件,这会给你一个 json,你可以用你喜欢的任何方式解析它。我编写了一个小的 python 脚本来将问题 json 文件转换为 excel,你可以在这里找到它。希望它能给您一些想法:
https://github.com/anath2/bitbucket-issues - 精益求精
You could export issues from
settings
in the repository. Then download the and extract the zip file, that would give you a json that you just could parse any way you preferI wrote a small python script to convert issues json file to excel that you can find it here. Hope it gives you some ideas:
https://github.com/anath2/bitbucket-issues-to-excel