如何从 Bitbucket 备份问题列表?

发布于 2024-09-26 23:53:39 字数 101 浏览 2 评论 0原文

对于在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

旧城空念 2024-10-03 23:53:39

From now on you can Import/Export your Issues:
Goto: -> Administration -> Import/Export

Youtube-Video: Bitbucket Issue Export

蘑菇王子 2024-10-03 23:53:39

您可以通过 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?

仙女 2024-10-03 23:53:39

全面披露我是 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.

你不是我要的菜∠ 2024-10-03 23:53:39

目前似乎没有任何方法可以导出您的问题:(

There doesn't currently appear to be any way to export your issues :(

戏蝶舞 2024-10-03 23:53:39

您可以从存储库中的设置导出问题。然后下载并解压 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 prefer

I 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文