Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I create a cross-project source reference in redmine?

Tags:

redmine

If you have two separate projects that is somehow connected. How can one make a reference to the source of the other project?

For referencing the source of your own project you use:

source:some/file

But since I want to refer to code in another project my thought was that I could write something like:

other_project:source:some/file

Anyone that knows if this is possible in some way? I have read http://www.redmine.org/wiki/redmine/RedmineTextFormatting#Redmine-links but found no clues there.

like image 784
UlfR Avatar asked Mar 31 '10 06:03

UlfR


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 being the project identifier.

like image 188
legoscia Avatar answered Jan 03 '23 02:01

legoscia


It is possible in a couple of ways - although neither solution is particularly neat.

  1. use an external html link to the other_project source code, where other-proj is the identifier for the other project.

    "other project source":http://myserver:3000/projects/other-proj/repository/entry/file.txt
    
  2. define the source path via the parent directories, so from the source directory of your current project go up 3 directory levels before navigating back down to the repository of your other project. Note the source link needs to be inside double quotes to work. This method at least keeps the source tag at the front of the link.

    source:"../../../other-proj/repository/entry/file.txt"
    
like image 24
Adrian Avatar answered Jan 03 '23 02:01

Adrian


The Redmine Text Formatting page says the format is:

source:repo_identifier|some/file

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

like image 21
Thav Avatar answered Jan 03 '23 01:01

Thav