task_history list#

Description#

タスク履歴の一覧を出力します。

Examples#

基本的な使い方#

--task_id に出力対象のタスクのtask_idを指定してください。

$ annofabcli task_history list --project_id prj1 --task_id file://task_id.txt

出力結果#

CSV出力#

$ annofabcli task_history list --project_id prj1 --format csv --output out.csv
out.csv#

project_id

task_id

task_history_id

started_datetime

ended_datetime

accumulated_labor_time_milliseconds

phase

phase_stage

account_id

user_id

username

worktime_hour

pjr1

task1

fdae87b7-0fdb-46d3-8e31-cb030eb001f7

2020-12-09T02:17:42.257+09:00

PT0S

annotation

1

0

prj1

task1

8c68ca72-2e50-4a98-9408-1e008525f550

2020-12-09T17:20:20.826+09:00

2020-12-09T17:20:30.137+09:00

PT9.311S

annotation

1

12345678-abcd-1234-abcd-1234abcd5678

user1

username1

0.002586388888889

prj1

task2

9b265f61-3a29-4998-b586-e38e7493d786

2020-12-09T02:17:42.257+09:00

PT0S

annotation

1

0

JSON出力#

$ annofabcli task_history list --project_id prj1 --format pretty_json --output out.json
out.json#
{
    "task1": [
        {
        "project_id": "prj1",
        "task_id": "task1",
        "task_history_id": "12345678-abcd-1234-abcd-1234abcd5678",
        "started_datetime": "2020-12-09T02:17:42.257+09:00",
        "ended_datetime": null,
        "accumulated_labor_time_milliseconds": "PT0S",
        "phase": "annotation",
        "phase_stage": 1,
        "account_id": null,
        "user_id": null,
        "username": null,
        "worktime_hour": 0.0
        },
        ...
    ],
    "task2": [
        {
        "project_id": "prj1",
        "task_id": "task2",
        "task_history_id": "22345678-abcd-1234-abcd-1234abcd5678",
        "started_datetime": "2020-12-09T02:17:42.257+09:00",
        "ended_datetime": null,
        "accumulated_labor_time_milliseconds": "PT0S",
        "phase": "annotation",
        "phase_stage": 1,
        "account_id": null,
        "user_id": null,
        "username": null,
        "worktime_hour": 0.0
        },
        ...
    ],
}

Usage Details#

タスク履歴の一覧を出力します。

usage: annofabcli task_history list [-h] [--yes] [--endpoint_url ENDPOINT_URL]
                                    [--annofab_user_id ANNOFAB_USER_ID]
                                    [--annofab_password ANNOFAB_PASSWORD]
                                    [--annofab_pat ANNOFAB_PAT]
                                    [--logdir LOGDIR] [--disable_log]
                                    [--debug] -p PROJECT_ID
                                    [-t TASK_ID [TASK_ID ...]]
                                    [-f {csv,json,pretty_json}] [-o OUTPUT]

Named Arguments#

-p, --project_id

対象のプロジェクトのproject_idを指定します。

-t, --task_id

対象のタスクのtask_idを指定します。 file:// を先頭に付けると、task_idの一覧が記載されたファイルを指定できます。

-f, --format

Possible choices: csv, json, pretty_json

出力フォーマットを指定します。

Default: 'csv'

-o, --output

出力先のファイルパスを指定します。未指定の場合は、標準出力に出力されます。

global optional arguments#

--yes

処理中に現れる問い合わせに対して、常に yes と回答します。

--endpoint_url

Annofab WebAPIのエンドポイントを指定します。

Default: 'https://annofab.com'

--annofab_user_id

Annofabにログインする際のユーザーID

--annofab_password

Annofabにログインする際のパスワード

--annofab_pat

Annofabにログインする際のパーソナルアクセストークン

--logdir

ログファイルを保存するディレクトリを指定します。

Default: .log

--disable_log

ログを無効にします。

--debug

HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。

See also#