createGoal Mutation
Creates a Hive goal with owners, targets, dates, sharing, and optional action, project, or subgoal measurements. Progress display accepts null, number, or actions measurements; number display also accepts overdue, while status display requires status measurement. Actions and overdue use actions/projects units, number uses currency/custom/percentage, and status uses subGoals. Custom unit values may be caller-defined; other values and symbols must match their unit type. Ongoing, recurring, and fixed date modes are mutually exclusive; fixed requires both dates with startDate before endDate.
Arguments
#
owners
User IDs who own this goal (must contain at least one element; empty arrays are not allowed and will be rejected at runtime)
recurringDate
Recurring schedule (cannot combine with ongoingDate or start/endDate)
measurementUnit
Unit for measurement (currency, percentage, custom, actions, projects, subGoals)
measurementUnitValue
Specific value for the unit (e.g., 'USD', 'percentage', 'actions', 'projects', '' for subGoals)
actionIds = []
Action IDs to track (requires measurementType actions/overdue + measurementUnit actions + measurementUnitValue 'actions')
projectIds = []
Project IDs to track (requires measurementType actions/overdue + measurementUnit projects + measurementUnitValue 'projects')
associatedProjectIds = []
Project IDs associated with the goal for dashboard/reporting filters (not measurement; independent of projectIds)
isFixedLimit
Whether this number goal uses a fixed limit instead of expected progress by today.
statusWarningValue
Boundary above or below the fixed goal value. Values between them are at risk, including both boundaries.
Response
#
Returns Goal .
Example
#
createGLAccount
createHttpConnection