1 [[!meta author="spalax"]]
2 [[!template id=plugin name=taskreport author="[[Louis|spalax]]"]]
6 The taskreport plugin provides the `task` directive (see below), displaying
7 [taskwarrior](http://taskwarrior.org) data as a table.
11 * `task_bin`: path to the task binary. Default is "task".
12 * `task_common`: arguments to all task calls. Can be used, for example, to set
13 a non-default taskrc location.
14 * `task_dir`: directory where to find task data files, if non-default. This
15 directory must be handled by IkiWiki. Otherwise, use the `task_common`
16 argument. This argument must be relative to the root of the wiki sources.
17 * `task_tmpdir`: directory where to copy task data files before calling task.
18 It can be used to circumvent [[lack of `--read-only`
19 option|https://bug.tasktools.org/browse/TW-204]]. Otherwise, those data files may
20 be modified by the task call. Setting this directory ensure that they are
21 not. This argument should be absolute (I do not know what would happen
23 * `task_columns`: List of default columns to display with the
24 task directive. Default is all available columns.
33 * `arg`: arguments to add to the task call. For example, to display a list of
34 pending tasks tagged `ikiwiki`, set it to `"status:pending +ikiwiki"`.
35 * `show`: number of tasks to show. Default is 0, and means: print all tasks.
36 * `sort`: tasks are sorted according to this column. Default is `urgency`.
37 * `reverse`: set yes to reverse order.
38 * `annotations`: set to yes to display annotations. Default is "yes".
42 When using this directive, the result of the following system call is printed:
44 TASK_BIN export rc.verbose=nothing TASK_COMMON [rc.data.location=DIR] ARG
46 * `TASK_BIN` and `TASK_COMMON` are the `task_bin` and `task_common` options set in ikiwiki setup.
47 * If `task_dir` and `task_tmpdir` are set in ikiwiki setup, `DIR` is `task_tmpdir` ; if only `task_dir` is set, `DIR` is `task_dir` ; otherwise, this part is not used.
48 * `ARG` is the `arg` option of the directive.
52 To allow CSS customization, the following classes are used.
54 * `task` is the class of the table.
55 * `urgency`, `project`, etc. are the class of the `th` and `td` elements for the corresponding task attributes.
56 * `annotation` is the class of the `tr` element of the table containing an annotation.
59 ## Download and install
61 Code and documentation can be found here : [[https://atelier.gresille.org/projects/gresille-ikiwiki/wiki/Taskreport]]