wiki:CustomTicketPrefixPlugin

Version 1 (modified by Cinc-th, 9 years ago) (diff)

New hack CustomTicketPrefixPlugin, created by Cinc-th

Define custom ticket prefixes to link commit messages with Trac instances or group tickets

Description

Specify a ticket like PREFIX:#1234 similar to intertrac links. The difference is it will be rendered like normal ticket links with the proper hint holding ticket information instead of intertrac information. Closed tickets will be rendered properly as strike through.

This is useful if you have several Trac instances referencing the same repository. By defining different prefixes for each instance it is possible to reference the correct instance in the commit message. For example:

Foo:#123: fix for encoding error in function bar().

In the repo browser of Trac instance Foo the link is rendered correctly and shows the ticket status from the commit message.

This plugin is tested with Trac 0.12 but is probably compatible with V1.x too.

Bugs/Feature Requests

Existing bugs and feature requests for CustomTicketPrefixPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Installation

This is a single file plugin. For installation just copy the python file to you plugin directory.

Recent Changes

15373 by Cinc-th on 2016-02-29 13:02:34
Add Trac 1.0 compatible version of the plugin.
14579 by Cinc-th on 2015-05-10 12:16:53
Initial check in of CustomTicketPrefixPlugin.
14578 by Cinc-th on 2015-05-10 11:03:51
New hack CustomTicketPrefixPlugin, created by Cinc-th
(more)

Author/Contributors

Author: Cinc-th
Maintainer: Cinc-th
Contributors: