AlmondTill/G3N API

On this page

myTasks

query · in the family Your own session

What it does

Your personal task inbox — the to-dos assigned to you.

The calling principal's OWN live tasks, NEWEST-FIRST + born-paginated. SELF-scoped BY CONSTRUCTION — no userId argument exists. Requires authentication.

Who may call it

Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.

Arguments

NameTypeRequiredNotes
limitIntnoHow many records to answer at most; a page may hold fewer.
nextTokenStringnoThe cursor from the previous page, passed back exactly as received.

Returns

TaskPage TaskPage! — One page of the tasks listing — the records + the opaque resume cursor.

This is a page: items holds the records and nextToken the cursor for the next page — pass it back verbatim until it is null. See paging.

Example request

query ExampleMyTasks($limit: Int) {
  myTasks(limit: $limit) {
    items {
      id
      sysId
      type
      caption
      status
      parentId
      rootId
      createdAt
      updatedAt
      revisionNum
      revision
      description
      priority
      createdBy
      systemOrigin
      reportTo
      assigneeUserIds
      teamIds
      labelIds
      dueAt
      overdue
      linkedFromTaskId
      returnAt
      originNoteId
      originAnchorType
      originAnchorId
    }
    nextToken
    matchCount
  }
}

Variables:

{
  "limit": 1
}

Example response

{
  "data": {
    "myTasks": {
      "items": [
        {
          "id": "01900000-0000-7000-8000-37386ae00000",
          "sysId": "TK-EXMP-0000-000F",
          "type": "Task",
          "caption": "Blue jeans",
          "status": "open",
          "parentId": "01900000-0000-7000-8000-065235280000",
          "rootId": "01900000-0000-7000-8000-a093dd800000",
          "createdAt": "2027-01-31T00:00:00.000Z",
          "updatedAt": "2027-01-31T00:00:00.000Z",
          "revisionNum": 1,
          "revision": "01900000-0000-7000-8000-b7960e180000",
          "description": "Straight-cut, mid-rise, five pockets.",
          "priority": "<priority>",
          "createdBy": "01900000-0000-7000-8000-0b14e5a60000",
          "systemOrigin": "<system origin>",
          "reportTo": "01900000-0000-7000-8000-9d69c9660000",
          "assigneeUserIds": [
            "01900000-0000-7000-8000-fbe5fcb10000"
          ],
          "teamIds": [
            "01900000-0000-7000-8000-1abd3d160000"
          ],
          "labelIds": [
            "01900000-0000-7000-8000-a235e7410000"
          ],
          "dueAt": "2027-01-31T00:00:00.000Z",
          "overdue": true,
          "linkedFromTaskId": "01900000-0000-7000-8000-6de8c4e00000",
          "returnAt": "2027-01-31T00:00:00.000Z",
          "originNoteId": "01900000-0000-7000-8000-f1eb5d520000",
          "originAnchorType": "<origin anchor type>",
          "originAnchorId": "01900000-0000-7000-8000-323b002b0000"
        }
      ],
      "nextToken": "<the cursor from the previous page>",
      "matchCount": 1
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer