Get Multiple Tasks
Retrieves a concise set of tasks based on certain filters. Specify a `project`,
`tag`, or `assignee` and `workspace` to get results. For advanced searches,
use the provided URL.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_MULTIPLE_TASKS])
Create A Task
Creating a task requires a POST request to `/tasks` with data fields; defaults
fill unspecified fields. Tasks must be in a fixed workspace, inferred if
`projects` or `parent` is provided.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_CREATE_A_TASK])
Get A Task
Returns the complete task record for a single task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_A_TASK])
Update A Task
To update a task, make a PUT request with changes in the `data` block to
the task's URL. Only specified fields will change; others stay the same.
Be cautious to avoid overwriting others' edits
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_UPDATE_A_TASK])
Delete A Task
DELETE requests on a task's URL will move it to the user's trash, where
it can be restored within 30 days. After that, it's permanently removed.
This action returns an empty data record.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_DELETE_A_TASK])
Duplicate A Task
Creates and returns a job that will asynchronously handle the duplication.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_DUPLICATE_A_TASK])
Get Tasks From A Project
Returns the compact task records for all tasks within the given project,
ordered by their priority within the project. Tasks can exist in more than
one project at a time.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_TASKS_FROM_A_PROJECT])
Get Tasks From A Section
*Board view only*: Returns the compact section records for all tasks within
the given section.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_TASKS_FROM_A_SECTION])
Get Tasks From A Tag
Returns the compact task records for all tasks with the given tag. Tasks
can have more than one tag at a time.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_TASKS_FROM_A_TAG])
Get Tasks From A User Task List
The API endpoint displays a user's comprehensive Asana task list, with privacy
filters and options to show only incomplete tasks.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_TASKS_FROM_A_USER_TASK_LIST])
Get Subtasks From A Task
Returns a compact representation of all of the subtasks of a task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_SUBTASKS_FROM_A_TASK])
Create A Subtask
Creates a new subtask and adds it to the parent task. Returns the full record
for the newly created subtask.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_CREATE_A_SUBTASK])
Set The Parent Of A Task
parent, or no parent task at all. Returns an empty data block. When using
`insert_before` and `insert_after`, at most one of those two options can
be specified, and they must already be subtas
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_SET_THE_PARENT_OF_A_TASK])
Get Dependencies From A Task
Returns the compact representations of all of the dependencies of a task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_DEPENDENCIES_FROM_A_TASK])
Set Dependencies For A Task
Marks a set of tasks as dependencies of this task, if they are not already
dependencies. *A task can have at most 30 dependents and dependencies combined*.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_SET_DEPENDENCIES_FOR_A_TASK])
Unlink Dependencies From A Task
Unlinks a set of dependencies from this task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_UNLINK_DEPENDENCIES_FROM_A_TASK])
Get Dependents From A Task
Returns the compact representations of all of the dependents of a task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_DEPENDENTS_FROM_A_TASK])
Set Dependents For A Task
Marks a set of tasks as dependents of this task, if they are not already
dependents. *A task can have at most 30 dependents and dependencies combined*.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_SET_DEPENDENTS_FOR_A_TASK])
Unlink Dependents From A Task
Unlinks a set of dependents from this task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_UNLINK_DEPENDENTS_FROM_A_TASK])
Add A Project To A Task
Adds a task to a project at the end or specified location. Use `insert_before`,
`insert_after`, or `section` for ordering. Only one of these options can
be used. Returns an empty data block.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_ADD_A_PROJECT_TO_A_TASK])
Remove A Project From A Task
Removes the task from the specified project. The task will still exist in
the system, but it will not be in the project anymore. Returns an empty
data block.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_REMOVE_A_PROJECT_FROM_A_TASK])
Add A Tag To A Task
Adds a tag to a task. Returns an empty data block.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_ADD_A_TAG_TO_A_TASK])
Remove A Tag From A Task
Removes a tag from a task. Returns an empty data block.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_REMOVE_A_TAG_FROM_A_TASK])
Add Followers To A Task
Adds followers to a task. Returns an empty data block. Each task can be
associated with zero or more followers in the system. Requests to add/remove
followers, if successful, will return the c
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_ADD_FOLLOWERS_TO_A_TASK])
Remove Followers From A Task
Removes each of the specified followers from the task if they are following.
Returns the complete, updated record for the affected task.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_REMOVE_FOLLOWERS_FROM_A_TASK])
Get A Task For A Given Custom Id
Returns a task given a custom ID shortcode.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_GET_A_TASK_FOR_A_GIVEN_CUSTOM_ID])
Search Tasks In A Workspace
The Asana API offers advanced task search similar to its web app exclusively
for premium users, with eventual consistency, no pagination, rate limits,
and supports complex filters through cust
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.ASANA_SEARCH_TASKS_IN_A_WORKSPACE])