25 lines
703 B
Markdown
25 lines
703 B
Markdown
Zammad Reports (Flask)
|
|
|
|
Quickstart
|
|
|
|
- Create and activate venv (optional).
|
|
- Install deps: pip install -r requirements.txt
|
|
- Configure env variables (recommended):
|
|
- ZAMMAD_URL=https://task.4mont.ru
|
|
- ZAMMAD_TOKEN=your_token_here
|
|
- Run: python app.py
|
|
|
|
Environment
|
|
|
|
- FLASK_SECRET_KEY: optional, for sessions/flash.
|
|
- ZAMMAD_URL: base URL of Zammad (e.g. https://task.4mont.ru).
|
|
- ZAMMAD_TOKEN: personal access token with API rights.
|
|
|
|
Features
|
|
|
|
- Totals: total, open vs closed.
|
|
- Grouping: by agent (owner), by group, by state, by priority.
|
|
- Trend: tickets per day in range.
|
|
- HTML charts (bar/line) with Chart.js + Bootstrap UI.
|
|
- JSON API: `/api/report.json` aggregates everything for the period.
|