Skip to content

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

Open
issm wants to merge 3 commits intoonishi:masterfrom
issm:time-entry
Open

Note を拡張して作業時間を記録できるように#5
issm wants to merge 3 commits intoonishi:masterfrom
issm:time-entry

Conversation

@issm
Copy link
Collaborator

@issm issm commented Apr 6, 2013

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 してしまうかと思います.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant