sudocode issue close
Close one or more issues to mark them as complete.Syntax
Description
Theissue close command marks issues as completed by setting their status to closed and recording the closure timestamp. This is the standard way to complete work in sudocode.
When you close an issue:
- Status is set to
closed closed_attimestamp is recordedupdated_attimestamp is updated- Changes are exported to JSONL for version control
- The issue remains in the database (not deleted)
Arguments
ISSUE-001 or ISSUE-001 ISSUE-002 ISSUE-003You can close multiple issues in a single command by providing multiple IDs.Options
--reason "Feature completed and tested"This is currently accepted but not stored in the database. Use for logging purposes in scripts.Examples
Close a Single Issue
Mark one issue as complete:Expected output
Expected output
Close Multiple Issues
Mark several issues as complete at once:Expected output
Expected output
Close with Reason
Provide a closure reason (for logging):Expected output
Expected output
--reason option is accepted but not currently stored. It’s useful for command history and scripting logs.Close Non-Existent Issue
Attempt to close an issue that doesn’t exist:Expected output
Expected output
Expected output
Expected output
JSON Output
Get machine-readable output:JSON output
JSON output
What Happens When You Close an Issue
Status updated
status field is set to closedTimestamps updated
closed_atis set to the current timestampupdated_atis set to the current timestamp
Database updated
JSONL exported
issues.jsonlBlockers released
What Doesn’t Change
- Issue ID - Stays the same
- Assignee - Remains assigned
- Priority - Unchanged
- Relationships - All relationships persist
- Content - Issue description remains
- Tags - Tags are retained
Common Workflows
Completing Work
Finish implementation
Run tests
Close the issue
Commit to git
Closing After Review
Mark as needs review
Review code and approve
Close after approval
Bulk Closing
Close multiple completed issues:Reopening a Closed Issue
If work needs to resume:closed_at timestamp and allows work to continue.Close vs Delete vs Archive
Close
- Standard workflow completion
- Issue remains visible in closed state
- Can be reopened if needed
- Preserves all data and relationships
Delete
- Removes issue from database
- Deletes from JSONL
- Cannot be undone (except via git)
- Use for mistakes or duplicates
Archive
- Hides from default listings
- Preserves all data
- For abandoned or obsolete work
- Can be unarchived later
- Close: Normal workflow - feature complete, bug fixed, work done
- Archive: Work abandoned or no longer relevant, but want historical record
- Delete: Duplicate issues, test issues, genuinely wrong content
Finding Closed Issues
View closed issues:Common Questions
Can I close an issue that's not assigned to me?
Can I close an issue that's not assigned to me?
What happens to issues blocked by a closed issue?
What happens to issues blocked by a closed issue?
Can I close an issue without assigning it first?
Can I close an issue without assigning it first?
How do I reopen a closed issue?
How do I reopen a closed issue?
open:closed_at timestamp.Is there a confirmation prompt before closing?
Is there a confirmation prompt before closing?
issue close executes immediately. For safety in scripts, add your own confirmation:Can I see who closed an issue?
Can I see who closed an issue?
updated_at timestamp shows when it was closed, but not who closed it. Use git history to track this:Will closing notify anyone?
Will closing notify anyone?
Troubleshooting
Error: Issue not found
Error: Issue not found
Issue still appears as open after closing
Issue still appears as open after closing
Closed issue doesn't appear in closed list
Closed issue doesn't appear in closed list
Can't close issue - database locked
Can't close issue - database locked
- Close other sudocode processes
- Wait a moment and retry
- Check for zombie processes:
ps aux | grep sudocode
Related Commands
issue list
issue show
issue update
issue delete
ready
blocked
Next Steps
Complete your work
Close the issue
Verify closure
Find next work

