close / reopen
Mark goals or interactions as closed (complete) or reopen them.
Usage
bash
et close <type> <id> [--json]
et reopen <type> <id> [--json]Supported Types
Only goals and interactions support status:
| Type | Description |
|---|---|
goal | Mark a user goal as achieved |
interaction | Mark an interaction as complete |
Actors and journeys do not have status. Journeys are templates.
Close
Mark work as complete:
bash
et close goal <id> [--json]
et close interaction <id> [--json]Examples:
bash
# Close a goal
et close goal checkout
# Output: Goal 'checkout' closed
# Close an interaction
et close interaction add_to_cart
# Output: Interaction 'add_to_cart' closed
# With JSON output
et close goal checkout --json
# Output: {"success":true,"message":"Goal 'checkout' closed","data":{...}}Reopen
Mark closed work as open again:
bash
et reopen goal <id> [--json]
et reopen interaction <id> [--json]Examples:
bash
# Reopen a goal
et reopen goal checkout
# Output: Goal 'checkout' reopened
# Reopen an interaction
et reopen interaction add_to_cart
# Output: Interaction 'add_to_cart' reopenedAlready in Target State
If an entity is already in the target state:
bash
et close goal checkout
# Output: Goal 'checkout' is already closedThis is not an error - the command succeeds.
Effect on List Commands
Closed items are hidden from default list output:
bash
# Shows only open goals (default)
et list goals
# Shows only closed goals
et list goals --closed
# Shows all goals with status column
et list goals --allSee list for more details on status filtering.
Workflow
Typical workflow for tracking work completion:
bash
# Review open work
et list
# Complete implementation...
# Mark goal as achieved
et close goal checkout
# Verify it's now hidden from open list
et list goals
# checkout no longer appears
# View closed work
et list goals --closed
# checkout appears hereJSON Output
With --json, returns the updated entity:
bash
et close goal checkout --jsonjson
{
"success": true,
"message": "Goal 'checkout' closed",
"data": {
"id": "checkout",
"description": "Complete purchase successfully",
"actor": "customer",
"status": "closed",
"created_at": "2024-01-15T10:30:00.000Z",
"updated_at": "2024-01-15T14:45:00.000Z"
}
}Errors
bash
# Entity not found
et close goal nonexistent
# Error: Goal 'nonexistent' not found
# Invalid type
et close actor customer
# Error: Unknown entity type: actor
# Valid types for close: goal, interaction