Skip to content

tasks

All tasks assigned to a provider or client

Arguments

assigned_to_user · Boolean · If true, only tasks assigned to the current user will be returned
assignees · [ID] · If present, only tasks assigned to the given users will be returned.
created_by_self · Boolean · Nil -> does nothing, false -> tasks created by others, true -> tasks created by current user
smart · Boolean · Nil -> all tasks, false -> non-smart tasks, true -> smart tasks
sort_by · String · <column-name>_<order> (i.e completed_asc, assignee_desc)
after · String · Returns the elements in the list that come after the specified cursor.
before · String · Returns the elements in the list that come before the specified cursor.
first · Int · Returns the first _n_ elements from the list.
last · Int · Returns the last _n_ elements from the list.

Returns

TaskPaginationConnection

Example

query tasks(
$assigned_to_user: Boolean
$assignees: [ID]
$client_id: ID
$completed_status: String
$created_by_self: Boolean
$keywords: String
$show_hidden: Boolean
$smart: Boolean
$type: String
$sort_by: String
$order_by: TaskOrderKeys
$after: String
$before: String
$first: Int
$last: Int
) {
tasks(
assigned_to_user: $assigned_to_user
assignees: $assignees
client_id: $client_id
completed_status: $completed_status
created_by_self: $created_by_self
keywords: $keywords
show_hidden: $show_hidden
smart: $smart
type: $type
sort_by: $sort_by
order_by: $order_by
after: $after
before: $before
first: $first
last: $last
) {
edges
nodes
page_info
total_count
}
}