Reference

Table SubTasks


Description

No description available

Supported Operations

Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.
Method Supported Reference EndPoint
SELECT get_subtasks
INSERT
UPDATE
UPSERT
DELETE
LOOKUP get_task

Examples

SSIS

Use Asana Connector in API Source component to read data or in API Destination component to read/write data:

Read from SubTasks table using API Source

API Source - Asana
Read and write Asana data effortlessly. Integrate, manage, and automate tasks, projects, workspaces, and time entries — almost no coding required.
Asana
SubTasks
Required Parameters
QueryBy Fill-in the parameter...
Optional Parameters
Parent Task Id
Project Id
Workspace Id
Assignee Id
Section Id
Tag Id
UserTaskListId
Completed Since
Modified Since
Continue On 404 Error (When record not found) False
SSIS API Source - Read from table or endpoint

Read/write to SubTasks table using API Destination

API Destination - Asana
Read and write Asana data effortlessly. Integrate, manage, and automate tasks, projects, workspaces, and time entries — almost no coding required.
Asana
SubTasks
Select
Required Parameters
QueryBy Fill-in the parameter...
Optional Parameters
Parent Task Id
Project Id
Workspace Id
Assignee Id
Section Id
Tag Id
UserTaskListId
Completed Since
Modified Since
Continue On 404 Error (When record not found) False
SSIS API Destination - Access table operation

ODBC application

Use these SQL queries in your ODBC application data source:

List first-level subtasks (default project)

<p>Returns first-level subtasks for the default project. Only direct children of tasks are included; deeper nesting (3rd, 4th level) is not returned. For subtasks under a specific parent task, use the SubTasks query with the parent task ID.</p>

SELECT * FROM SubTasks

List first-level subtasks for a project

<p>Returns first-level subtasks for a specific project. Supply the project ID. Only the first level of subtasks is returned; deeper nesting is not included. To get subtasks for a single parent task, use the parent task ID instead of the project.</p>

SELECT * FROM SubTasks WITH (ProjectId='1200652735638082')

List subtasks for a parent task

<p>Returns subtasks for a specific parent task. Supply the parent task ID. This returns all direct subtasks of that task regardless of nesting level in the project.</p>

SELECT * FROM SubTasks  WITH(QueryBy='task', TaskId='1207150838176996')

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

List first-level subtasks (default project)

<p>Returns first-level subtasks for the default project. Only direct children of tasks are included; deeper nesting (3rd, 4th level) is not returned. For subtasks under a specific parent task, use the SubTasks query with the parent task ID.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SubTasks';

EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];

List first-level subtasks for a project

<p>Returns first-level subtasks for a specific project. Supply the project ID. Only the first level of subtasks is returned; deeper nesting is not included. To get subtasks for a single parent task, use the parent task ID instead of the project.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SubTasks WITH (ProjectId=''1200652735638082'')';

EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];

List subtasks for a parent task

<p>Returns subtasks for a specific parent task. Supply the parent task ID. This returns all direct subtasks of that task regardless of nesting level in the project.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM SubTasks  WITH(QueryBy=''task'', TaskId=''1207150838176996'')';

EXEC (@MyQuery) AT [LS_TO_ASANA_IN_GATEWAY];