How to find "priority" tasks in PostgreSQL

I’m trying to do some research on “Priority” tasks… tasks where the priority.level property is set to high.

The database schema documentation for tasks makes no specific mention of this property, though I imagine it would show up in the emission property (Minified task data emitted from the partner code) if anywhere.

Will the priority.level property be included in the “minified task data…”?

Hi @michael

Priority level and label will be included in the minified task emission:

{
  .....
  "type": "task",
  "emission": {
    "_id": "3da4835d-9ba9-4f53-8726-4053b75c867c~pregnancy-home-visit4067~a random task2",
    "title": "task.anc.pregnancy_home_visit.title",
    "icon": "icon-pregnancy",
    "deleted": false,
    "resolved": false,
    "actions": [
      {
        "type": "report",
        "form": "pregnancy_home_visit",
        "label": "Pregnancy home visit",
        "content": {
          "source": "task",
          "source_id": "3da4835d-9ba9-4f53-8726-4053b75c867c"
        }
      }
    ],
    "priority": "high",
    "priorityLabel": "HIGH PRIO",
    "contact": {
      "name": "nettles"
    },
    "dueDate": "2023-01-18",
    "startDate": "2023-01-12",
    "endDate": "2023-01-25",
    "forId": "6a9753a607e0f0b01eacf517ed00276a"
  },
  "state": "Draft"
}

The documentation should be updated to correct the missing references to priority level + label.

Closing the loop on this… I’ve added priority/label to the documentation.

2 Likes