Package trac :: Package ticket :: Module roadmap

Module roadmap

source code

Classes
  ITicketGroupStatsProvider
  TicketGroupStats
Encapsulates statistics on a group of tickets.
  DefaultTicketGroupStatsProvider
Configurable ticket group statistics provider.
  RoadmapModule
Overview of all the milestones.
  MilestoneModule
View and edit individual milestones.
Functions
 
get_ticket_stats(provider, tickets) source code
 
get_tickets_for_milestone(env, milestone=None, field='component')
Retrieve all tickets associated with the given milestone.
source code
 
get_tickets_for_all_milestones(env, field='component') source code
 
get_num_tickets_for_milestone(env, milestone, exclude_closed=False)
Returns the number of tickets associated with the milestone.
source code
 
apply_ticket_permissions(env, req, tickets)
Apply permissions to a set of milestone tickets as returned by get_tickets_for_milestone().
source code
 
milestone_stats_data(env, req, stat, name, grouped_by='component', group=None) source code
 
grouped_stats_data(env, stats_provider, tickets, by, per_group_stats_data)
Get the tickets stats data grouped by ticket field by.
source code
 
group_milestones(milestones, include_completed)
Group milestones into "open with due date", "open with no due date", and possibly "completed".
source code
Variables
  __package__ = 'trac.ticket'

Imports: datetime, timedelta, io, itertools, re, Attachment, AttachmentModule, ConfigSection, ExtensionOption, Option, NotificationSystem, IPermissionRequestor, ISearchSource, search_to_regexps, shorten_result, as_bool, partition, datetime_now, format_date, format_datetime, from_utimestamp, get_datetime_format_hint, parse_date, pretty_timedelta, to_datetime, user_time, utc, tag, classes, CRLF, exception_to_unicode, to_unicode, _, tag_, TicketSystem, BatchTicketChangeEvent, Milestone, MilestoneCache, Ticket, ITimelineEventProvider, HTTPBadRequest, IRequestHandler, RequestDone, Chrome, INavigationContributor, accesskey, add_link, add_notice, add_stylesheet, add_warning, auth_link, prevnext_nav, web_context, IWikiSyntaxProvider, format_to, Component, ExtensionPoint, Fragment, IResourceManager, Interface, Resource, ResourceExistsError, ResourceNotFound, ResourceSystem, TracBaseError, TracError, TracValueError, get_relative_resource, get_relative_url, get_resource_description, get_resource_name, get_resource_shortname, get_resource_summary, get_resource_url, implements, render_resource_link, resource_exists


Function Details

get_num_tickets_for_milestone(env, milestone, exclude_closed=False)

source code 
Returns the number of tickets associated with the milestone.
Parameters:
  • milestone - name of a milestone or a Milestone instance.
  • exclude_closed - whether tickets with status 'closed' should be excluded from the count. Defaults to False.

Since: 1.2

grouped_stats_data(env, stats_provider, tickets, by, per_group_stats_data)

source code 

Get the tickets stats data grouped by ticket field by.

per_group_stats_data(gstat, group_name) should return a data dict to include for the group with field value group_name.

group_milestones(milestones, include_completed)

source code 
Group milestones into "open with due date", "open with no due date", and possibly "completed". Return a list of (label, milestones) tuples.