Use the comment command to add a comment to an issue:
issuedb-clicommentISSUE_ID-t"Your comment text"
Examples:
# Add a simple comment
issuedb-clicomment1-t"Started investigating this issue"# Add a detailed comment
issuedb-clicomment1-t"Found the root cause: the config file was missing a required field"# Add with JSON output to get the comment details
issuedb-cli--jsoncomment1-t"Testing the fix"
The JSON output includes the comment ID and timestamp:
{"id":1,"issue_id":1,"text":"Testing the fix","created_at":"2025-01-15T10:30:00"}
--------------------------------------------------
Comment ID: 1
Created: 2025-01-15 10:30:00
Text: Started investigating this issue
--------------------------------------------------
Comment ID: 2
Created: 2025-01-15 11:45:00
Text: Found the root cause: the config file was missing a required field
--------------------------------------------------
Comment ID: 3
Created: 2025-01-15 14:20:00
Text: Fix implemented and tested
JSON output:
issuedb-cli--jsonlist-comments1
[{"id":1,"issue_id":1,"text":"Started investigating this issue","created_at":"2025-01-15T10:30:00"},{"id":2,"issue_id":1,"text":"Found the root cause: the config file was missing a required field","created_at":"2025-01-15T11:45:00"}]
# Starting work
issuedb-cliupdate1-sin-progress
issuedb-clicomment1-t"Starting work on this issue"# Making progress
issuedb-clicomment1-t"Completed initial investigation, root cause identified"# More progress
issuedb-clicomment1-t"Fix implemented, running tests"# Completing
issuedb-cliupdate1-sclosed
issuedb-clicomment1-t"All tests passing, fix deployed to production"
Comments
IssueDB supports adding comments to issues, allowing you to track notes, progress updates, and resolution details throughout an issue’s lifecycle.
Overview
Comments are a simple but powerful way to:
Document your progress while working on an issue
Explain why an issue was closed or reopened
Add notes for future reference
Communicate with team members about an issue
Each comment is associated with a specific issue and includes:
Unique comment ID
The text content
Creation timestamp
Adding Comments
Use the
commentcommand to add a comment to an issue:Examples:
The JSON output includes the comment ID and timestamp:
Viewing Comments
List all comments for an issue:
Example output:
JSON output:
Deleting Comments
Remove a comment by its ID:
Example:
Common Patterns
Closing with Resolution Comment
A common pattern is to close an issue and add a resolution comment:
Progress Tracking
Track your progress through comments:
Reopening Issues
When reopening a closed issue, add a comment explaining why:
Blocking Notes
Document why an issue is blocked:
Comments and Issue Deletion
When an issue is deleted, all its comments are automatically deleted as well (cascade delete). The audit log preserves a record of the deletion.
Best Practices
Be descriptive: Write comments that will make sense to you (or others) weeks later
Add resolution comments: Always explain why an issue was closed
Document blockers: Note when and why an issue is blocked
Use timestamps implicitly: IssueDB automatically timestamps comments, so focus on the content
Keep comments focused: Each comment should cover one topic or update
API Reference
For programmatic access, see the Repository API documentation for the
add_comment(),get_comments(), anddelete_comment()methods.