Changes between Version 5 and Version 6 of CustomTicketPrefixPlugin


Ignore:
Timestamp:
Aug 16, 2018, 6:15:08 AM (6 years ago)
Author:
figaro
Comment:

Moved example to functional description

Legend:

Unmodified
Added
Removed
Modified
  • CustomTicketPrefixPlugin

    v5 v6  
    1212
    1313In the repo browser of Trac instance ''Foo'' the link is rendered correctly and shows the ticket status from the commit message.
     14
     15To define a ticket prefix add the following to your `trac.ini` file:
     16
     17{{{#!ini
     18[ticket-prefix]
     19prefix = Pre1, Foo, BAR
     20}}}
     21
     22As you can see, it is possible to define several prefixes.
     23
     24You may now reference any ticket by prepending the ticket with the defined prefix(es). With the given example the following links are all referencing the same ticket and all links are rendered the same way:
     25
     26* {{{#1234}}}
     27* {{{Pre1:#1234}}}
     28* {{{Foo:#1234}}}
     29* {{{Bar:#1234}}}
     30
     31A closed ticket would be rendered like:
     32* ~~{{{#123}}}~~
     33* ~~{{{Pre1:#123}}}~~
     34* ~~{{{Foo:#123}}}~~
     35* ~~{{{Bar:#123}}}~~
    1436
    1537This plugin is tested with Trac 0.12.3 and Trac 1.0.10.
     
    3759This is a single file plugin. For installation just copy the Python file to you plugin directory. There are versions for Trac 0.12 and Trac 1.0.
    3860
    39 == Example
    40 
    41 To define a ticket prefix add the following to your `trac.ini` file:
    42 
    43 {{{#!ini
    44 [ticket-prefix]
    45 prefix = Pre1, Foo, BAR
    46 }}}
    47 
    48 As you can see, it's possible to define several prefixes.
    49 
    50 You may now reference any ticket by prepending the ticket with the defined prefix(es). With the given example the following links are all referencing the same ticket and all links are rendered the same way:
    51 
    52 * {{{#1234}}}
    53 * {{{Pre1:#1234}}}
    54 * {{{Foo:#1234}}}
    55 * {{{Bar:#1234}}}
    56 
    57 A closed ticket would be rendered like:
    58 * ~~{{{#123}}}~~
    59 * ~~{{{Pre1:#123}}}~~
    60 * ~~{{{Foo:#123}}}~~
    61 * ~~{{{Bar:#123}}}~~
    62 
    6361== Recent Changes
    6462