8

シンプルなテキスト ベースのインターフェイスを介して Redmine タスクベースにアクセスしたいと考えています。


現在、これは 2 つのユースケース / フェーズに要約されます。

  1. 単純な wiki ベースの箇条書き TODO リストからRedmineにタスクのバッチをインポートします。プレーンテキストコンテンツ。これは 1 回限りの作業なので、迅速で汚れた解決策で問題ありません。

  2. 後で、スムーズな双方向同期があれば素晴らしいでしょう..たとえば、エディターでわかりやすいプレーンテキスト (または XML) を介して大量のタスクを編集したり、単純なテキスト処理ですべてを操作できるスクリプトを作成したりします。次に、Redmine と同期し、それらをコミットします。

これらを達成する最も簡単な方法についてのアイデアはありますか?

特に1回限りのインポートの場合は、外部ソリューション(つまり、サーバーに触れない)をお勧めします。きちんとした IDE/エディター/クライアント、またはスタンドアロンの Ruby スクリプト (たとえば、RM API を使用) のようなもの。適切な RM プラグインが利用可能であれば、私はそれを試してみることに抵抗しません (私たちの素敵な IT サポートから root アクセスを得ることができます:).. 現在のアイデア:

  • Emacs/ Org-modeは、クールなタスク マネージャー UI と完全なプレーン テキスト機能の素晴らしい組み合わせのように見えます。タグや状態もキャプチャするのに十分なようです。この記事はOrgmode と Roundup: Bridging public bugtrackers と local tasklistに有望に見えますが、完全に一致するわけではありません。
  • Ruby の org-mode パーサーは、redmine-api アクセスのあるスクリプトで使用できます。または、最悪の場合 (私にとっては、現在)、新しく開発された RM プラグインで使用できます。これは良いスタートのようです: org-ruby
  • RM->XML のエクスポート、ファイルの処理、XML->RM のインポート...これがサポートされているかどうかわかりませんか? DB と直接やり取りすることはいつでも可能だと思いますが、それは避けたいと思います。

実際、Bugzilla の同様のソリューションにも興味があります。

4

2 に答える 2

2

At the simplest level, you could write a RM/Rails plugin that parses an Org-Mode task list, updating corresponding issues in the RM Model.

Equally, you can build a view for Redmine (again as a Rails plugin) to generate an org list of the current (or subset of) issues.

For Bugzilla I think you would be best off using the XML-RPC interface to do your issue comparison/update sync, so you'd have to take a very different approach from Redmine.

If you have any specific questions, please update your question, it's quite broad at the moment.

Update

At the moment, there are a few plugins which will probably help you figure out your solution, for example Nick Boltons xml import and Martin Liu's Redmine CSV Import Plugin but neither of these are going to completely solve the problem for you, just give you some useful starting point.

On the other hand, If you write a script that interacts with Redmine's REST api, you don't need it to be in any specific lanugage, in fact you could do it in Emacs-lisp, if the target users of the script are all Emacs aware, then this might well be the best way to do the job. (it would certainly be the most appealing option to me.)

于 2010-12-19T09:03:13.233 に答える
1

多分これは役に立つかもしれません: https://github.com/fukamachi/redmine-el

于 2011-06-25T06:54:54.517 に答える