Re: [Trac] Hints to create minimal Trac installation to use the Trac Source Browser together with a JIRA repository

13 views
Skip to first unread message

Benjamin Lau

unread,
Sep 21, 2012, 9:17:30 AM9/21/12
to trac-...@googlegroups.com
> Does anybody have any hints which Trac modules could disabled?

You should be able to disable most of trac and have this work. I tried
this on my test instance on my development box...
in the Admin|Plugins try disabling:
trac.ticket.query.*
QueryModule
trac.ticket.report.*
ReportModule
trac.ticket.roadmap.*
MilestoneModule
RoadmapModule
trac.ticket.web_ui.*
TicketModule
trac.timeline.web_ui.*
TimelineModule
trac.wiki.web_ui.*
WikiModule
And possibly:
trac.about.*
AboutModule

Pretty much all of the "*Module" classes provide the toplevel
capabilities of Trac so if there are things I missed... look for those
and see if they do what you need. I'd leave the Admin module so you
can configure Trac easily. But you should be able to strip it down a
lot.

> Is it possibly to render JIRA ticket keyword like "ISSUE-1234" into real
> links pointing to a JIRA repository?

Take a look at InterMapTxt... that would probably be the easiest way.
Or you'd need to write some sort of plug-in.
http://trac.edgewall.org/wiki/InterMapTxt The syntax might not be
exactly what you want... but you could do something like ISSUE:1234

So here's an example for linking to the ACE Jira instance...

In wiki/InterMapTxt in your Trac instance you'd need to add a new
InterTrac definition like this:
ISSUE https://issues.apache.org/jira/browse/ACE-$1 #jira link

This would go below == Prefix Definitions == inside the "{{{"

And then to use it in a page you just would write:
ISSUE:269
and that would turn into a link. Not exactly what you want... but at
least it wouldn't require any coding. :-)

Hope that points you in the right direction.

Ben

RjOllos

unread,
Sep 21, 2012, 12:08:04 PM9/21/12
to trac-...@googlegroups.com
On Friday, September 21, 2012 4:50:58 AM UTC-7, Faramant wrote:
Is it possibly to render JIRA ticket keyword like "ISSUE-1234" into real links pointing to a JIRA repository?

I'd go with Netjunki's suggestion of using InterMapTxt because it is simple, but if you do end up writing your own plugin, you'll need to look at the IWikiSyntaxProvider (1). AcronymsPlugin (2) provides a good example of how to implement this.


Reply all
Reply to author
Forward
0 new messages