link_goal_issues
Roll fix-queue issues up to a goal, so the queue answers 'why am I doing this?'. Select by explicit issue_ids, by rule_keys, or by category (e.g. every 'aeo' issue). An issue already linked to a DIFFERENT goal is skipped and reported rather than stolen — pass reassign=true only when you mean to move it. For a goal with no metric_key and no manual_total, these linked issues become its progress: resolved / total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unlink | No | Detach the selected issues from THIS goal instead of linking — the undo for an over-broad rule_keys link. Default false. | |
| dry_run | No | Count what would be linked/unlinked without writing. Use before a rule_keys or category link — 3 keys once expanded to 197 rows. Default false. | |
| goal_id | Yes | Goal id from list_goals | |
| site_id | Yes | The brand/site ID | |
| category | No | Link every open issue in this category instead | |
| reassign | No | Move issues that already belong to another goal. Default false. | |
| issue_ids | No | JSON array of site_issue ids | |
| rule_keys | No | JSON array of rule keys, e.g. ["thin_content","duplicate_title"] |