开发者

How to backup issues list from 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 开发者_如何学GoI can use?


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

Youtube-Video: Bitbucket Issue Export


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?


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 :(


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜