customize milestone view?

204 views
Skip to first unread message

pagameba

unread,
Sep 30, 2009, 1:15:12 PM9/30/09
to Trac Users
I've implemented a custom ticket workflow in 11.5 that adds a verify
status for qa purposes, it works exactly as I need it to. The only
thing that isn't working the way I would like it to now is the
milestone page, it shows closed, active and total tickets. I would
like to add a new summary for tickets that are status verify.

Is this something I can write a plugin for? Modify existing code?

Cheers

Paul

Christian Boos

unread,
Sep 30, 2009, 2:16:17 PM9/30/09
to trac-...@googlegroups.com
pagameba wrote:
> I've implemented a custom ticket workflow in 11.5 that adds a verify
> status for qa purposes, it works exactly as I need it to. The only
> thing that isn't working the way I would like it to now is the
> milestone page, it shows closed, active and total tickets. I would
> like to add a new summary for tickets that are status verify.
>
>

You're looking for http://trac.edgewall.org/wiki/TracRoadmapCustomGroups

> Is this something I can write a plugin for? Modify existing code?
>

No, it's part of the base ticket module, you don't need anything else.

-- Christian

yoheeb

unread,
Sep 30, 2009, 2:55:44 PM9/30/09
to Trac Users
On Sep 30, 6:16 pm, Christian Boos <cb...@neuf.fr> wrote:
> pagameba wrote:
> > I've implemented a custom ticket workflow in 11.5 that adds a verify
> > status for qa purposes, it works exactly as I need it to.  The only
> > thing that isn't working the way I would like it to now is the
> > milestone page, it shows closed, active and total tickets.  I would
> > like to add a new summary for tickets that are status verify.
>
> You're looking forhttp://trac.edgewall.org/wiki/TracRoadmapCustomGroups
>
> > Is this something I can write a plugin for?  Modify existing code?
>
> No, it's part of the base ticket module, you don't need anything else.
>
> -- Christian

you may also want to create some custom milestone related css stuff,
and add that to you site.css as recommended here:
http://trac.edgewall.org/wiki/TracInterfaceCustomization specificall
the ProjectTemplates section at the bottom.

for reference, I am including mine, I use bot the built in Red, green,
yellow, and a couple custom ones in my roadmap for special states, 4
states are enough (red, green, yellow, "wite") then there is no need
for the css stuff.

The states are active, closed, moreinfo, new, and reqsverfication. Of
note, both closed and reqsverification counts towards overall
completion percentage as "done"
I also point the site.css to a separate css file for the roadmaps,
probably over kill, but I did this so I can use a global file for
most, or, as in this case, use something specifically local, which is
in the htdocs directory of the project. Anyway, hope it helps

trac.ini:

[milestone-groups]
active = *
active.css_class = open
active.label = in progress
active.order = 4
closed = closed
closed.css_class = closed
closed.order = 0
closed.overall_completion = true
closed.query_args = group=resolution
moreinfo = needmoreinfo,needinfo
moreinfo.css_class = moreInfo
moreinfo.label = Need Info
moreinfo.order = 2
new = new
new.css_class = newticket
new.label = New
new.order = 3
reqsverification = reqsVerification
reqsverification.css_class = new
reqsverification.label = Unverified
reqsverification.order = 1
reqsverification.overall_completion = true
reqsverification.query_args = group=owner

site.css:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/" py:strip="">
<!--! Custom match templates go here -->
<!--! Add site-specific style sheet -->
<head py:match="head" py:attrs="select('@*')">
${select('*|comment()|text()')}
<link rel="stylesheet" type="text/css"
href="${href.chrome('site/rm.css')}" />
</head>
</html>

rm.css:
table.progress td.moreInfo { background: #ff1111}
table.progress td.newticket { background: #AAAAAA}

Paul Spencer

unread,
Sep 30, 2009, 5:06:34 PM9/30/09
to trac-...@googlegroups.com
perfect, thanks to both Christian and yoheeb, the custom groups thing
did the trick but I think I want to add some more groups now and will
need the css options for that.

Cheers

Paul
Reply all
Reply to author
Forward
0 new messages