Skip to main content

Goals

Goals and milestones. goals section.
2 min read

9 tools, gated on the goals section.

ToolR/WEndpoint
list_goalsRGET /goals/profiles/{ws}
get_goalRGET /goals/profiles/{ws}/{goalId}
create_goalWPOST /goals/profiles/{ws}
update_goalWPATCH .../{goalId}
create_goal_milestoneWPOST .../{goalId}/milestones
update_goal_milestoneWPATCH .../{goalId}/milestones/{milestoneId}
link_entity_to_goalWPOST .../{goalId}/links
list_goal_linkable_entitiesRGET .../linkable-entities

Progress modes#

A goal's progress is computed in three ways, according to its progressMode:

ModeHow it advances
manualThe percentage is set by hand with manualProgressPercent.
milestonesDerived from completed milestones.
linkedDerived from linked entities (tasks, activities…).
Warning

manualProgressPercent only takes effect in manual mode. The update_goal description says so, and get_goal is how to check the mode before trying to set a percentage.

On goals in milestones mode, what moves progress is update_goal_milestone with completed: true — not update_goal.

To link work: list_goal_linkable_entities then link_entity_to_goal (linkType: task | activity | finance_goal).

Risk#

list_goals and get_goal return isAtRisk, which the API computes by comparing progress with the target date. It requires a todayDateKey, which the handler derives from the session timezone instead of asking the model.

get_goal also includes milestones with their status, trimmed to id, title, and completed.

Dispatcher manage_goals — manage_goals.ts#

ResourceOps
milestonesdelete (approval)
linksdelete (approval)

Every manage_goals operation requires approval. Prefer create_goal_milestone, link_entity_to_goal, and update_goal_milestone for day-to-day use.

Bulk create — goals_bulk.ts#

ToolR/WEndpoint
bulk_create_goalsWPOST /goals/.../bulk-create

Cap 50, partial success { ids, errors }.