Skip to content

[Task]: Implement history and logs on task #56

@luizhcastro

Description

@luizhcastro

Objective

Implement an activity history and audit log system for tasks. Track all changes made to tasks including status updates, field modifications, assignee changes, comments, and relationship updates. Provide a timeline view of all activities.

Scope

In scope:

  • Create task_history entity to store activity logs
  • Capture events: status changes, field updates, assignee changes, label/tag modifications
  • Store old and new values for auditing
  • Track user who made the change and timestamp
  • GET /api/tasks/:id/history endpoint to retrieve activity log
  • Pagination support for history
  • Filter history by event type or date range

Out of scope:

  • Real-time notifications for changes (separate issue)
  • UI component to display timeline (separate issue)
  • Rollback/undo functionality
  • Detailed diff view for text fields

Acceptance criteria

  • task_history entity created with event type, old_value, new_value, user_id, timestamp
  • Automatic logging when task fields are modified
  • Automatic logging when status changes
  • Automatic logging when assignees change
  • Automatic logging when labels/tags change
  • Automatic logging when relationships are added/removed
  • GET /api/tasks/:id/history endpoint working
  • Pagination implemented for history endpoint
  • Filter by event type parameter
  • Filter by date range parameters
  • Unit tests for history tracking
  • API documentation updated

Deadline (optional)

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions