Ticket #1414 (closed enhancement: fixed)
User-defined trac links using same colon syntax as reports, tickets etc
| Reported by: | walter.nicholls@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | high | Milestone: | 0.10 |
| Component: | wiki system | Version: | devel |
| Severity: | normal | Keywords: | traclinks intertrac |
| Cc: |
Description
Add ability to map TracLink -style prefixes to URLs. For example define somewhere that text with a "case:" prefix, eg:
case:123
.. is mapped to the hyperlink
http://mycrmserver/viewcase.php?case_number=123
This should also support long text descriptions as described in #185, ie
[case:123 Request from Allied Widgets inc for this report]
This can be done in a clumsy way now with a WikiMacro, but this does not work inside subversion change comments, which is where I would find it most useful.
Possible implementation: could be defined in trac.ini like so:
[linktranslation] case = http://remedy.foocorp.com/case/#1
This would require changes to the Wiki parser to build the regular expressions more dynamically than currently.
The output of this could be rendered as an external link, even better would be if this was configurable.
Also, would be nice if we could override the standard ones, etc make "ticket:" point to our own trouble ticket system, outside of Trac.


