Globalindex

L’index des tâches couvrant l’ensemble des clients/départements peut être récupéré avec l’Endpoint @globalindex.

GET /@globalindex HTTP/1.1
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json

{
  "batching": null,
  "items": [
    {
      "title": "re: Requête directe",
      "task_type": "direct-execution",
      "task_id": 14,
      "containing_dossier": "Requêtes 2020",
      "created": "2016-08-31T18:27:33",
      "issuing_org_unit": "fa",
      "responsible": "inbox:fa",
      "responsible": "Boîte de réception Finances",
      "modified": "2016-08-31T18:27:33",
      "is_subtask": false,
      "deadline": "2021-01-01",
      "review_state": "task-state-in-progress",
      "assigned_org_unit": "fa",
      "is_private": true,
      "predecessor_id": null,
      "issuer": "robert.ziegler"
    }
  ]
}

Filter

Exemple: Filtrer par tâches complétés et clôturées:

GET /@globalindex?filters.review_state:record:list=task-state-resolved&filters.review_state:record:list=task-state-tested-and-closed HTTP/1.1
Accept: application/json

Exemple: Filtrer par personne résponsable

GET /@globalindex?filters.responsible:record=peter.muser HTTP/1.1
Accept: application/json