wiki:StatusHistoryChartMacro

Plot a graph of a ticket's field change history

Description

This macro plots a graph of a ticket's field change history. The open source flot graphing library is used, which is licensed under the MIT License. The command [[StatusHistoryChart]] needs to be added to your wiki page where you want your plot to appear and it can take the following arguments:

without arguments
  • Result for report or query, if used on report description.
  • Bound for milestone, if used on milestone description.
  • Your last query result. You're Feeling Lucky!
args
y-axis options
  • Use report parameter in query for field name to plot. ([13030])
    • default: status
  • Use format parameter in query for yaxis values.
    • slash / separated column name or * for wildcard.
    • two or more value can use in one, ie /new/assigned+accepted AS in progress/closed ([13031])
    • default: options for the field, ie new/assigned/accepted/closed/* for status.

Examples of how to use this macro:

[[StatusHistoryChart]]
[[StatusHistoryChart(format=new/*/closed)]]
[[StatusHistoryChart(format=new/accepted+assigned AS in progress/closed)]]
[[StatusHistoryChart(owner=$USER&format=new/*/closed)]]
[[StatusHistoryChart(type=$TYPE&format=new/*/closed)]]  (uses CGI parameter for $TYPE)
[[StatusHistoryChart(report=milestone)]]
[[StatusHistoryChart(report=owner&format=/somebody/*/matobaa/)]]

The output might look as follows:

Bugs/Feature Requests

Existing bugs and feature requests for StatusHistoryChartMacro are here.

If you have any issues, create a new ticket.

defect

1 / 1

task

3 / 3

Download

Download the zipped source from here.

Source

You can check out StatusHistoryChartMacro from here using Subversion, or browse the source with Trac.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Recent Changes

17536 by matobaa on 2019-10-03 01:45:14
StatusHistoryChartMacroWeekPlanPlugin: Trac 1.3 compatible DB upgrades. Since trac:ticket:11901
16391 by rjollos on 2017-03-25 03:55:05
Fix mixed tabs/spaces in source
15087 by matobaa on 2015-11-30 22:41:09
StatusHistoryChart: fixes #12597
Now this macro can use two or more in a page
(more)

Author/Contributors

Author: matobaa
Maintainer: matobaa
Contributors:

Last modified 5 years ago Last modified on Oct 3, 2019, 5:51:17 AM

Attachments (1)

Download all attachments as: .zip