Skip to main content
There are three ways to fetch tasks:
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
These operations require the following permissions:
  • task:read

Get tasks

Query
Variables

Get task by ID

Query
Variables

Get task by ref

Query
Variables

Get the knowledge gap behind a task

When Ari raises a task for a knowledge gap, the task’s sourceLinks holds one entry with sourceType: "knowledge_gap", and on that entry knowledgeGap carries the gap’s title and description. The task’s status is the gap’s status; to change it, update the task.
Knowledge gaps are in beta. sourceLinks and the KnowledgeGapTaskLink type may change without a deprecation period.
Reading knowledgeGap also requires the knowledgeGap:read permission. A task you created yourself has an empty sourceLinks.
Query
Variables