Source: factory.service/package.core/ObjServiceAsana.py
Asana REST API service for project and task
management.
Wraps the Asana REST API with authentication,
rate-limit handling, and local sync tracking.
...
| Method | Signature | Description |
|---|---|---|
| get_workspace | get_workspace() -> dict |
Return workspace info for the configured |
| get_users | get_users() -> list |
List users in the configured workspace. |
| list_projects | list_projects() -> list |
List projects in the configured workspace. |
| get_project | get_project(project_gid: str) -> dict |
Get project detail by GID. |
| create_project | create_project(name: str, notes: str = '') -> dict |
Create a new project in the workspace. |
| list_tasks | list_tasks(project_gid: str) -> list |
List tasks in a project. |
| get_task | get_task(task_gid: str) -> dict |
Get task detail by GID. |
| create_task | create_task(project_gid: str, name: str, notes: str = '', assignee: str = '', due_date: str = '') -> dict |
Create a new task in a project. |
| update_task | update_task(task_gid: str, **fields) -> dict |
Update task fields. |
| complete_task | complete_task(task_gid: str) -> dict |
Mark a task as completed. |
| add_comment | add_comment(task_gid: str, text: str) -> dict |
Add a comment (story) to a task. |
| add_subtask | add_subtask(parent_gid: str, name: str) -> dict |
Add a subtask to an existing task. |
| list_sections | list_sections(project_gid: str) -> list |
List sections (columns) in a project. |
| create_section | create_section(project_gid: str, name: str) -> dict |
Create a new section in a project. |
| move_task_to_section | move_task_to_section(task_gid: str, section_gid: str) -> dict |
Move a task into a section. |
| link_record | link_record(source_table: str, source_key: str, asana_gid: str, asana_type: str = 'task') -> None |
Link a local DB record to an Asana GID. |
| get_asana_gid | get_asana_gid(source_table: str, source_key: str) -> str |
Look up Asana GID for a local record. |
| get_local_key | get_local_key(asana_gid: str) -> str |
Look up local record key for an Asana GID. |
| Connect | Connect() |
Legacy Connect interface. |
| Send | Send() |
Legacy Send interface. |
Verify the Asana token is valid.
List projects in the workspace.
List tasks in a project.
Create a task in a project.