Add command line argument to filter overdue notification for a given project

This commit is contained in:
Frederic Guillot
2017-06-18 21:57:20 -04:00
parent ba068aa1c4
commit 94a86237fc
4 changed files with 46 additions and 18 deletions

View File

@@ -133,11 +133,12 @@ Optional parameters:
- `--show`: Display notifications sent
- `--group`: Group all overdue tasks for one user (from all projects) in one email
- `--manager`: Send all overdue tasks to project manager(s) in one email
- `-p|--project project_id|identifier`: Send notifications only for the given project
You can also display the overdue tasks with the flag `--show`:
```bash
./kanboard notification:overdue-tasks --show
./cli notification:overdue-tasks --show
+-----+---------+------------+------------+--------------+----------+
| Id | Title | Due date | Project Id | Project name | Assignee |
+-----+---------+------------+------------+--------------+----------+
@@ -146,6 +147,18 @@ You can also display the overdue tasks with the flag `--show`:
+-----+---------+------------+------------+--------------+----------+
```
Example to filter by project:
```bash
./cli notification:overdue-tasks --project 123
```
Or if you have defined a project identifier:
```bash
./cli notification:overdue-tasks --project MY_PROJECT
```
### Run daily project stats calculation
This command calculate the statistics of each project: