Query
query Tasks {
tasks {
edges {
cursor
node {
id
ref
title
description
status
priority
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
totalCount
}
}Response
{
"data": {
"tasks": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"ref": "string",
"title": "string",
"description": "string",
"status": "TODO",
"priority": 1
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"totalCount": 1
}
}
}Queries
tasks
Fetch a paginated list of tasks in the workspace. Use filters to narrow results by status, assignee, company, or tenant. Use sortBy to order by priority, status, or creation/update time. Requires the task:read permission.
QUERY
tasks(first: Int, after: String, last: Int, before: String, filters: TasksFilter, sortBy: TasksSort): TaskConnection!Arguments
first
Int
after
String
last
Int
before
String
filters
sortBy
Returns
edges
[TaskEdge!]!
pageInfo
totalCount
Int!
Query
query Tasks {
tasks {
edges {
cursor
node {
id
ref
title
description
status
priority
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
totalCount
}
}Response
{
"data": {
"tasks": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"ref": "string",
"title": "string",
"description": "string",
"status": "TODO",
"priority": 1
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"totalCount": 1
}
}
}Was this page helpful?

