comment list_with_replies# Description# ルートコメントに返信コメント一覧を付与して出力します。 Examples# 基本的な使い方# 以下のコマンドを実行すると、指定したタスクの最新コメントを取得し、ルートコメントに reply_comments として返信コメント一覧を付与したJSONが出力されます。 $ annofabcli comment list_with_replies --project_id prj1 --task_id task1 --format pretty_json --comment_type を指定すると、コメントの種類で絞り込めます。 $ annofabcli comment list_with_replies --project_id prj1 --task_id task1 \ --comment_type inspection --format pretty_json 出力結果# annofabcli comment list コマンドで出力されるルートコメントの構造に、返信コメント一覧の reply_comments が追加されます。 reply_comments 配下の返信コメントには reply_count は含まれません。 [ { "project_id": "project1", "task_id": "task1", "input_data_id": "input_data1", "comment_id": "root-comment1", "comment": "枠がずれています", "comment_node": { "status": "open", "_type": "Root" }, "reply_count": 1, "reply_comments": [ { "project_id": "project1", "task_id": "task1", "input_data_id": "input_data1", "comment_id": "reply-comment1", "comment": "修正しました", "comment_node": { "root_comment_id": "root-comment1", "_type": "Reply" } } ] } ] Usage Details# 指定したタスクのルートコメントに返信コメント一覧を付与して出力します。 usage: annofabcli comment list_with_replies [-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 ...] [--comment_type {inspection,onhold}] [-f {json,pretty_json}] [-o OUTPUT] Named Arguments# -p, --project_id 対象のプロジェクトのproject_idを指定します。 -t, --task_id 対象のタスクのtask_idを指定します。 file:// を先頭に付けると、task_idの一覧が記載されたファイルを指定できます。 --comment_type Possible choices: inspection, onhold コメントの種類で絞り込みます。 inspection: 検査コメント onhold: 保留コメント -f, --format Possible choices: json, pretty_json 出力フォーマットを指定します。 Default: 'json' -o, --output 出力先のファイルパスを指定します。未指定の場合は、標準出力に出力されます。 global optional arguments# --yes 処理中に現れる問い合わせに対して、常に yes と回答します。 --endpoint_url Annofab WebAPIのエンドポイントを指定します。 --annofab_user_id Annofabにログインする際のユーザーID --annofab_password Annofabにログインする際のパスワード --annofab_pat Annofabにログインする際のパーソナルアクセストークン --logdir ログファイルを保存するディレクトリを指定します。 Default: .log --disable_log ログを無効にします。 --debug HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。
comment list_with_replies#
Description#
ルートコメントに返信コメント一覧を付与して出力します。
Examples#
基本的な使い方#
以下のコマンドを実行すると、指定したタスクの最新コメントを取得し、ルートコメントに
reply_commentsとして返信コメント一覧を付与したJSONが出力されます。--comment_typeを指定すると、コメントの種類で絞り込めます。出力結果#
annofabcli comment listコマンドで出力されるルートコメントの構造に、返信コメント一覧のreply_commentsが追加されます。reply_comments配下の返信コメントにはreply_countは含まれません。[ { "project_id": "project1", "task_id": "task1", "input_data_id": "input_data1", "comment_id": "root-comment1", "comment": "枠がずれています", "comment_node": { "status": "open", "_type": "Root" }, "reply_count": 1, "reply_comments": [ { "project_id": "project1", "task_id": "task1", "input_data_id": "input_data1", "comment_id": "reply-comment1", "comment": "修正しました", "comment_node": { "root_comment_id": "root-comment1", "_type": "Reply" } } ] } ]Usage Details#
指定したタスクのルートコメントに返信コメント一覧を付与して出力します。
usage: annofabcli comment list_with_replies [-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 ...] [--comment_type {inspection,onhold}] [-f {json,pretty_json}] [-o OUTPUT]Named Arguments#
対象のプロジェクトのproject_idを指定します。
対象のタスクのtask_idを指定します。
file://を先頭に付けると、task_idの一覧が記載されたファイルを指定できます。Possible choices: inspection, onhold
コメントの種類で絞り込みます。
Possible choices: json, pretty_json
出力フォーマットを指定します。
Default:
'json'出力先のファイルパスを指定します。未指定の場合は、標準出力に出力されます。
global optional arguments#
処理中に現れる問い合わせに対して、常に
yesと回答します。Annofab WebAPIのエンドポイントを指定します。
Annofabにログインする際のユーザーID
Annofabにログインする際のパスワード
Annofabにログインする際のパーソナルアクセストークン
ログファイルを保存するディレクトリを指定します。
Default:
.logログを無効にします。
HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。