タスクを取得
- 最終更新日2026/04/29
タスクを取得アクションは、タスク GID を使用して任意のAsanaワークスペース内のタスクの詳細を取得します。 このアクションは、デフォルトのタスクフィールドまたは特定のフィールドを取得し、レスポンスデータを変数に格納して後続のアクションで使用します。
概要
タスク取得 アクションは、接続 アクションで定義されたセッション名を認証コンテキストとして使用し、タスクの詳細を取得します。 タスクのデフォルトフィールドを取得するか、必要なフィールドを指定してその詳細を取得することができます。 デフォルトフィールドは、gid、name、notes、due_on、parent、assignee、projects、およびcompletedです。 利用可能な任意フィールドの一覧は以下の通りです:
-
actual_time_minutes -
approval_status -
assigned_by -
assigned_by.name -
assignee -
assignee.name -
assignee_section -
assignee_section.name -
assignee_status -
completed -
completed_at -
completed_by -
completed_by.name -
created_at -
created_by -
custom_fields -
custom_fields.asana_created_field -
custom_fields.created_by -
custom_fields.created_by.name -
custom_fields.currency_code -
custom_fields.custom_label -
custom_fields.custom_label_position -
custom_fields.date_value -
custom_fields.date_value.date -
custom_fields.date_value.date_time -
custom_fields.default_access_level -
custom_fields.description -
custom_fields.display_value -
custom_fields.enabled -
custom_fields.enum_options -
custom_fields.enum_options.color -
custom_fields.enum_options.enabled -
custom_fields.enum_options.name -
custom_fields.enum_value -
custom_fields.enum_value.color -
custom_fields.enum_value.enabled -
custom_fields.enum_value.name -
custom_fields.format -
custom_fields.has_notifications_enabled -
custom_fields.id_prefix -
custom_fields.input_restrictions -
custom_fields.is_formula_field -
custom_fields.is_global_to_workspace -
custom_fields.is_value_read_only -
custom_fields.multi_enum_values -
custom_fields.multi_enum_values.color -
custom_fields.multi_enum_values.enabled -
custom_fields.multi_enum_values.name -
custom_fields.name -
custom_fields.number_value -
custom_fields.people_value -
custom_fields.people_value.name -
custom_fields.precision -
custom_fields.privacy_setting -
custom_fields.reference_value -
custom_fields.reference_value.name -
custom_fields.representation_type -
custom_fields.resource_subtype -
custom_fields.text_value -
custom_fields.type -
custom_type -
custom_type.name -
custom_type_status_option -
custom_type_status_option.name -
dependencies -
dependents -
due_at -
due_on -
external -
external.data -
followers -
followers.name -
hearted -
hearts -
hearts.user -
hearts.user.name -
html_notes -
is_rendered_as_separator -
liked -
likes -
likes.user -
likes.user.name -
memberships -
memberships.project -
memberships.project.name -
memberships.section -
memberships.section.name -
modified_at -
name -
notes -
num_hearts -
num_likes -
num_subtasks -
parent -
parent.created_by -
parent.name -
parent.resource_subtype -
permalink_url -
projects -
projects.name -
resource_subtype -
start_at -
start_on -
tags -
tags.name -
workspace -
workspace.name
設定
タスク取得 アクションで利用できる設定は次のとおりです:
- セッション
-
接続 アクションが作成する Asana セッション。 接続 アクションの設定に従い、次のいずれかのオプションを選択してください。
- セッション名: セッション名を格納している文字列変数を選択するか、テキストボックスにセッション名を手動で入力してください。
- 変数: Asana セッション名を保持するセッション変数を選択します。
- タスク GID
- 取得するAsanaタスクのグローバル一意識別子(GID)。
- オプション項目(任意)
- レスポンスに含めるタスクフィールド名のカンマ区切りリストです。 例えば、
name、assignee_status、permalink_url、notes、completed、projects、parent。 フィールドが空の場合、アクションはデフォルトのフィールドセットを返します。 各フィールドを文字列変数として定義し、それらを使用してそれぞれの詳細を取得できます。 - レスポンスを変数に割り当てる
- タスクの詳細を含む応答データを格納する変数です。 デフォルトでは、レスポンスデータには
gid、name、notes、due_on、parent、assignee、projects、completedのフィールドが含まれます。 レスポンスデータを保存するには、次のいずれかのオプションを選択します。-
複数の変数: 特定のレスポンスデータを保存するために、個別の変数を作成して指定します。
変数マッピングを追加 オプションを使用して、特定のレスポンスデータを保存するためのキーと対応する変数タイプを指定します。
- ディクショナリ: 単一のディクショナリ変数を作成し、全てのレスポンスデータを保存してください。
-
複数の変数: 特定のレスポンスデータを保存するために、個別の変数を作成して指定します。