Usage
Run the statistics script:
bash
./aiscripts/aitask_stats.sh [OPTIONS]
Options
- •
-d, --days N- Show daily breakdown for last N days (default: 7) - •
-v, --verbose- Show individual task IDs in daily breakdown - •
--csv [FILE]- Export raw data to CSV (default: aitask_stats.csv) - •
-h, --help- Show usage information
Examples
Basic statistics (last 7 days):
bash
./aiscripts/aitask_stats.sh
Extended daily view (14 days):
bash
./aiscripts/aitask_stats.sh --days 14
Verbose output with task names:
bash
./aiscripts/aitask_stats.sh -v
Export to CSV for graphing in LibreOffice:
bash
./aiscripts/aitask_stats.sh --csv
Statistics Provided
- •Summary - Total completions, 7-day and 30-day counts
- •Daily Breakdown - Completions per day with optional task IDs
- •Day of Week Stats - Current week counts + 30d/all-time averages per weekday
- •Label Weekly Trends - Per-label completions for last 4 weeks (W-3, W-2, W-1, This Week)
- •Label Day-of-Week Breakdown - Per-label averages by day of week
- •Task Type Weekly Trends - Parent/child and feature/bug trends for last 4 weeks
- •Features/Bugs by Label Trends - Combined label + issue type weekly trends
Export Format
CSV Export: Raw task data with columns:
- •date, day_of_week, week_offset, task_id, labels, issue_type, task_type
Open in LibreOffice Calc to create custom charts and pivot tables for trend analysis.
Importing CSV in LibreOffice Calc
- •Open LibreOffice Calc
- •File -> Open -> Select the CSV file
- •In the import dialog:
- •Character set: UTF-8
- •Separator: Comma
- •Check "Quoted field as text"
- •Click OK
Creating Charts
- •Select the data range
- •Insert -> Chart
- •Choose chart type (Line, Bar, or XY Scatter for trends)
- •Follow the wizard to customize
Pivot Tables for Analysis
- •Select all data
- •Insert -> Pivot Table
- •Drag fields:
- •Row:
week_offsetorday_of_week - •Column:
labelsorissue_type - •Data: Count of
task_id
- •Row:
- •Creates summary table for trends