Redmine-Chan icon indicating copy to clipboard operation
Redmine-Chan copied to clipboard

Note を拡張して作業時間を記録できるように

Open issm opened this issue 11 years ago • 0 comments

Note の機能を拡張した書式で「作業時間」を記録できるようにしてみました.

書式は次のとおりです:

[{hours} {activity} {comments}] {note} > #{issue_id}  # 作業時間・Note ともに記録
[{hours} {activity}] {note} > #{issue_id}             # 上記のコメントなしバージョン
[{hours} {activity} {comments}] > #{issue_id}         # 作業時間のみ
[{hours} {activity}] > #{issue_id}                    # 作業時間のみ: コメントなし

また,Redmine::Chan コンストラクタのパラメータ activity_commands を定義することで,システム上の「活動」に対応する名前を定義できます:

Redmine::Chan->new(
    ...
    activity_commands => {
        1 => [qw/設計/],
        2 => [qw/開発/],
        3 => [qw/連絡 メール/],
        4 => [qw/資料/],
    },
);

なお,おそらく #4 における1行の修正と conflict してしまうかと思います.

issm avatar Apr 06 '13 09:04 issm