My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2332: Allow token replacement for project name in commentlinks
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Project Member Reported by david.pu...@sonymobile.com, Dec 11, 2013
I have several projects, call them "project-a", "project-b", "project-c", etc.

I also have a separate issue tracker for each project, i.e.

"http://path/to/tracker/project-a/issues/ "http://path/to/tracker/project-b/issues/ "http://path/to/tracker/project-c/issues/ etc.

If I want to set up commentlinks that link to the correct tracker, I have to set it individually in each project's project.config file:

[commentlink "tracker"]
       match = "([Bb]ug|[Ii]ssue)\\s*#?(\\d+)"
       link = http://path/to/tracker/project-a/issues/$2

[commentlink "tracker"]
       match = "([Bb]ug|[Ii]ssue)\\s*#?(\\d+)"
       link = http://path/to/tracker/project-b/issues/$2

[commentlink "tracker"]
       match = "([Bb]ug|[Ii]ssue)\\s*#?(\\d+)"
       link = http://path/to/tracker/project-c/issues/$2

etc.

Instead, I want to be able to set it once on the parent project and have it inherited by all the child projects, for example something like:

[commentlink "tracker"]
       match = "([Bb]ug|[Ii]ssue)\\s*#?(\\d+)"
       link = http://path/to/tracker/$PROJECT/issues/$2

Sign in to add a comment

Powered by Google Project Hosting