Skip to content

v0.5.0

Choose a tag to compare

@akdarrah akdarrah released this 23 Sep 19:45
e1f721e

New

  • phq tasks results <id>: shows a task's Results grid, the same data as the web Results page. There's one row per organization (keyed by task_completion_id) and one column per custom field, with the field id in [brackets]. --json returns the raw {columns, data}.
  • phq tasks results-update <id>: fills in Results grid cells. Use repeatable --set <task_completion_id>:<field_id>=<value>, or --data '{"changes":[...]}'|@file.json. All changes in one call apply together or not at all.
    • Checkbox cells take true/false, and checkbox groups take a comma-separated list.
    • Unknown or read-only columns are rejected before anything is sent.
  • phq resources results / results-update: the same commands for resources.

Editing needs the host permission "This host can make updates via the task results view", which the project owner sets on the individual. Without it, results still works and shows field columns as read-only.

No existing commands or flags changed.

Upgrading

cd partnerhq-cli && git pull && npm install && npm run build
phq --version   # 0.5.0

Requires the matching API (partnerhq/partnerhq#748), which is deployed.