Mirror of the Rel4tion website/wiki source, view at <http://rel4tion.org>
Clone
HTTPS:
git clone https://vervis.peers.community/repos/yEzqv
SSH:
git clone USERNAME@vervis.peers.community:yEzqv
Branches
Tags
ticket-bucket-stats.mdwn
[[!color foreground=#ff0000 text=“Important:”]] The errors below happen because - at least it seems so - by default ikiwiki ignores the TMPL tags when rendering template pages. This should be fixed upstream already using the templatebody
directive, but this wiki doesn’t have that feature yet.
Statistics
By Done
open: | [[!pagecount pages=""" and * and !templates/ticket and ( ) and tagged(tickets/class/*) and !tagged(tickets/done)"""]] |
closed: | [[!pagecount pages=""" and * and !templates/ticket and ( ) and tagged(tickets/class/*) and tagged(tickets/done)"""]] |
total: | [[!pagecount pages=""" and * and !templates/ticket and ( ) tagged(tickets/class/*)"""]] |
invalid: | [[!pagecount pages=""" and * and !templates/ticket and tagged(tickets/done) and !tagged(tickets/class/*)"""]] |
By Class
[[!pagestats pages=“” pages="tickets/class/" among=""“ among=”"" and !templates/ticket and (!tickets or tickets/*) and tagged(tickets/done) and !tagged(tickets/done) """ style=“table”]]
This template generates ticket statistics. The following parameters are used:
bydone
: Whether to create stats by open/closed statebydonetitle
: Title text (can use markup) forbydone
. (default: “## By Done”)byclass
: Whether to create stats by ticket classbyclasstitle
: Title text (can use markup) forbyclass
. (default: “## By Class”)bucket
: PageSpec specifying on which ticket pages to make the stats. If you want a specific bucket, it will look like"myproject/*"
. (default: * i.e. entire wiki)dropopen
: Forbyclass
, whether to drop the open tickets frombuckets
from the stats (default: no)dropclosed
: Forbyclass
, whether to drop the closed tickets frombuckets
from the stats (default: no)classesbc
: [[ikiwiki/PageSpec]] of pages that are ticket classes to group by inbyclass
. (default: all classes)classesbd
: PageSpec of pages that are ticket classes to filter the bucket by inbydone
, usingtagged()
. The spec must be if the formtagged(tickets/class/C)
ortagged(tickets/class/C1) and ... and
tagged(tickets/class/Cn)`. (default: all classes)
The invalid category in the bydone
stats counts tickets marked as done but which don’t have a class. This is invalid because every ticket must have a class.