wiki:GanttPrueba


[[TracJSGanttChart]]

Displays a Gantt chart for the specified tickets.

The chart display can be controlled with a number of macro arguments:

ArgumentDescriptionDefault
formatsWhat to display in the format control. A pipe-separated list of minute, hour, day, week, month, and quarter (though minute may not be very useful). 'day|week|month|quarter'
formatInitial display format, one of those listed in formats First format
sampleDisplay sample tasks (1) or not (0) 0
resShow resource column (1) or not (0) 1
durShow duration colunn (1) or not (0) 1
compShow percent complete column (1) or not (0) 1
captionCaption to place to right of tasks: None, Caption, Resource, Duration, %Complete Resource
startDateShow start date column (1) or not (0) 1
endDateShow end date column (1) or not (0) 1
dateDisplayDate display format: 'mm/dd/yyyy', 'dd/mm/yyyy', or 'yyyy-mm-dd' 'mm/dd/yyyy'
openLevelNumber of levels of tasks to show. 1 = only top level task. 999
colorByField to use to choose task colors. Each unique value of the field will have a different color task. Other likely useful values are owner and milestone but any field can be used. priority
rootWhen using something like Subtickets plugin to maintain a tree of tickets and subtickets, you may create a Gantt showing a ticket and all of its descendants with root=<ticket#>. The macro uses the configured parent field to find all descendant tasks and build an id= argument for Trac's native query handler.

Multiple roots may be provided like root=1|12|32.

When used in a ticket description or comment, root=self will display the current ticket's descendants.
None
goalWhen using something like MasterTickets? plugin to maintain ticket dependencies, you may create a Gantt showing a ticket and all of its predecessors with goal=<ticket#>. The macro uses the configured succ field to find all predecessor tasks and build an id= argument for Trac's native query handler.

Multiple goals may be provided like goal=1|12|32.

When used in a ticket description or comment, goal=self will display the current ticket's predecessors.
None
lwidthThe width, in pixels, of the table of task names, etc. on the left of the Gantt.
showdepShow dependencies (1) or not (0)1
userMapMap user !IDs to full names (1) or not (0).1
omitMilestonesShow milestones for displayed tickets (0) or only those specified by milestone= (1)0
scheduleSchedule tasks based on dependenies and estimates. Either as soon as possible (asap) or as late as possible (alap)alap
doResourceLevelingResolve resource conflicts (1) or not (0) when scheduling tickets.0
displayFilter for limiting display of tickets. owner:fred shows only tickets owned by fred. status:closed shows only closed tickets.None
orderOrder of fields used to sort tickets before display. order=milestone sorts by milestone. May include ticket fields, including custom fields, or "wbs" (work breakdown structure).wbs

Site-wide defaults for macro arguments may be set in the trac-jsgantt section of trac.ini. option.<opt> overrides the built-in default for <opt> from the table above.

All other macro arguments are treated as TracQuery specification (e.g., milestone=ms1|ms2) to control which tickets are displayed.

Last modified 11 years ago Last modified on Aug 30, 2013 11:30:36 AM