Can I create a source link for a cross project in redmine?

If you have two separate projects that are somehow connected. How can I make a link to the source of another project?

To link to the source of your own project, you use:

source:some/file 

But since I want to reference the code in another project, I thought I could write something like:

 other_project:source:some/file 

Anyone who knows if this is possible to some extent? I read http://www.redmine.org/wiki/redmine/RedmineTextFormatting#Redmine-links but did not find any clues there.

+6
redmine
source share
3 answers

Apparently, this was implemented in Redmine 1.2.0 (released 2011-05-30). The syntax is exactly the one you suggested in the question, other_project:source:some/file , other_project , which is the identifier of the project.

+6
source share

This is possible in several ways - although not a single solution is particularly neat.

  • use the html external link for other_project source code, where other-proj is the identifier for another project.

     "other project source":http://myserver:3000/projects/other-proj/repository/entry/file.txt 
  • determine the source path through the parent directories, so from the source directory of your current project, go to 3 directory levels before moving back to the repository of another project. Note that the source link must be inside double quotes to work. This method at least stores the original tag at the beginning of the link.

     source:"../../../other-proj/repository/entry/file.txt" 
+3
source share

The Redmine Text Formatting page indicates that the format is:

source:repo_identifier|some/file

However, the selected answer works for my version of Redmine (1.4.2), but it may have been modified in later versions. This link format was added to this wiki page on 2012-08-27 after the OP asked their question.

+1
source share

All Articles