Redmine - Feature #4052
Cross-project redmine links with alternate link text for source and export links.
2009-10-19 05:43 - William Baum

ステータス:

New

開始日:

優先度:

Normal

期日:

担当者:
カテゴリ:

Text formatting

2009-10-19

進捗率:50%予定工数:

0.00時間対象バージョン:Resolution:
説明In Feature #3346 (Support for cross-project revision links), James Wells and Babar O'Cap collaborated to make it possible to create
commit and revision links across projects.
I have now extended the project: syntax to source: and export: links and also extended them with the ability to specify alternate link
text: "Download filename" instead of projectname:export:foo/bar/path/filename.
I have also corrected the issue causing source and export links to not be properly converted to absolute links in issue updateemails. (See Defect #3483)
So... Source and export links now work in emails, can be cross project, and can have alternate display text for the link.
Syntax:["Link alternate display title"=][project:]source:some/path[/file][@52][#L120]["Link alternate display title"=][project:]export:some/path/file[@52]Note: For the link text, the double-quotes are currently required, even if the text is only one word. I chose to implement thealternate link name functionality in a way that altered the primary regex as little as possible. It's getting a bit unwieldy.

091018-cross-project̲redmine̲links-tests.patch contains changes to test/* files as provided in:#3346 cross-project̲revision̲and̲commit̲links̲v5.diff - Patch v5 - from Babar O'Cap, 2009-08-26 03:27
I have no idea how to use, extend, or test this test/* functionality, so I didn't attempt to..

091018-cross-project̲redmine̲links.patch contains no test/* file modifications.
関連するチケット:
関連している Redmine - Feature #779: Multiple SCM per project

Closed2008-03-04

関連している Redmine - Feature #7409: Cross project Redmine links

Closed2011-01-22

関連している Redmine - Feature #3346: Support for cross-project...

Closed2009-05-12

関連している Redmine - Defect #3483: Relative url for source li...

Closed2009-06-12

関連している Redmine - Feature #10248: Specific text instead of...

New

関連している Redmine - Feature #21443: Links to resources in Ma...

New

次のチケットが重複 Redmine - Feature #4667: Ability to link to a r...

Closed2010-01-27

履歴#1 - 2009-10-19 05:48 - William Baumoops.. image links don't work for attachments.. that last part was supposed to be:
091018-cross-project̲redmine̲links-tests.patch contains changes to test/* files as provided in:#3346 cross-project̲revision̲and̲commit̲links̲v5.diff - Patch v5 - from Babar O'Cap, 2009-08-26 03:27
I have no idea how to use, extend, or test this test/* functionality, so I didn't attempt to..

2024-09-09

1/3

091018-cross-project̲redmine̲links.patch contains no test/* file modifications.
#2 - 2009-10-20 19:25 - William BaumI have discovered an issue with this, which hopefully can be easily resolved...
This patch currently breaks the !version#6 syntax. Instead of being a link to the version in the roadmap, it becomes a link to an issue by that
number (#6).
#3 - 2009-10-22 02:59 - William Baum- ファイル 091021-cross-project̲redmine̲links.patch を追加- 進捗率 を 0 から 50 に変更
Updated patch file, corrects issues with attachment, document, and version links.
#4 - 2009-11-27 11:37 - Babar O'Cap+1#5 - 2010-03-26 11:58 - Alexey Palazhchenko
Any news?
#6 - 2010-03-29 00:47 - William Baum- ファイル 100328-̲r3618̲-cross-project̲redmine̲links.patch を追加
Here's an svn formatted patch against r3618.
It's functional, but could use some refactoring.
#7 - 2010-04-12 11:04 - Antonio García-Domínguez+1#8 - 2010-07-01 09:31 - Pieter Smith+1This is so damn useful! Why has nobody added it to the roadmap yet!?
#9 - 2010-08-04 18:04 - Pieter Smith
Hi William,
Any chance that you can update the patch for redmine 0.9.6 or later?
Thanks in advance!
#10 - 2010-08-04 21:18 - Pieter Smith
O'h... I forgot to mention that I tried merging the patch with 0.9.6, but got more merge conflicts than I can safely solve with my limited Ruby
knowledge.
#11 - 2010-08-06 01:22 - William Baum- ファイル 100805-1.0.0̲r3854-cross-project̲redmine̲links.patch を追加
My apologies.. I actually started to do this weeks ago and got pulled off on something else..
Attached is 100805-1.0.0̲r3854-cross-project̲redmine̲links.patch, which is a patch against 1.0.0 (source:/trunk@3854).
I did actually generate patches against 0.9.5 (source:/trunk@3815) and 0.9.6 (source:/trunk@3815) as well, but I'm not uploading them because
they are identical except for the revision references in the patch. This patch should apply without issue against any trunk or release between r3602
and r3894.
The functional changes in this patch are all in app/helpers/application̲helper.rb, which has had a couple of recent revisions that would affect line
numbers, but the patch should still apply properly to a current trunk. Let me know if you need a patch against a more recent trunk..
#12 - 2010-08-06 14:25 - Pieter Smith- ファイル 100806-0.9.6̲add̲cross̲project̲links̲with̲changesets.patch を追加
Thanks. Can't we get a Target Version for this? How can we convince the core team to integrate this?

2024-09-09

2/3

I am also adding 100806-0.9.6̲add̲cross̲project̲links̲with̲changesets.patch to use the cross-project wiki formats (project:r1234 andproject:commit:ab34cd) when fixing issues via repository commit keywords.
#13 - 2010-08-06 14:27 - Pieter Smith
By the way... 100805-1.0.0̲r3854-cross-project̲redmine̲links.patch doesn't play well with 0.9.6. The trouble starts with:text = text.gsub(%r{([\s\(,\-\>]¦^)(!)?(attachment¦document¦version¦commit¦source¦export¦message)?((#¦r)(\d+)¦(:)([^"\s<>][^\s<>]*?¦"[^"]+?"))(?=(?=[[:punct:]]\W)¦,¦\s¦<¦$)}) do ¦m¦
in 0.9.6 versus the expected
text.gsub!(%r{([\s\(,\-\[\>]¦^)(!)?(attachment¦document¦version¦commit¦source¦export¦message¦project)?((#¦r)(\d+)¦(:)([^"\s<>][^\s<>]*?¦"[^"]+?"))(?=(?=[[:punct:]]\W)¦,¦\s¦\]¦<¦$)}) do ¦m¦which is what the patch expects.
#14 - 2011-01-20 03:56 - Blake Williams
Subprojects in Redmine are effectively useless without this feature.
#15 - 2011-03-24 12:34 - Toshi MARUYAMA- カテゴリ を Text formatting にセット
#16 - 2012-09-22 14:41 - Stefan Lindner
Still no plans to include this in near future? Wikis look awful without th ability to display a homan readable text for repository links.
#17 - 2012-10-23 13:59 - Sébastien Aubry
The syntax: [[project:page¦text]] should indeed work. It is even weird that it is not the case by default. Probably a problem with the regexp?
#18 - 2013-03-05 05:15 - Thomas Robbs+1#19 - 2014-03-21 08:53 - Arthur Zalevsky
Yep, it's definitely necessary feature.
#20 - 2014-04-20 01:00 - Toshi MARUYAMA- 関連している Defect #3483: Relative url for source links in notifications を追加#21 - 2014-09-24 16:00 - Toshi MARUYAMA- 関連している Feature #10248: Specific text instead of addresses to the Redmine internal links を追加#22 - 2016-01-01 07:26 - Toshi MARUYAMA- 関連している Feature #21443: Links to resources in Markdown を追加#23 - 2016-02-04 19:10 - Hans Ginzel
Please, also for Markdown formatting, #15520.

ファイル
091018-cross-project̲redmine̲links.patch

12.4 KB

2009-10-19

William Baum091018-cross-project̲redmine̲links-tests.patch

16.9 KB

2009-10-19

William Baum091021-cross-project̲redmine̲links.patch

12.5 KB

2009-10-22

William Baum100328-̲r3618̲-cross-project̲redmine̲links.patch

12.3 KB

2010-03-28

William Baum12.2 KB

2010-08-05

William Baum771 Bytes

2010-08-06

Pieter Smith

100805-1.0.0̲r3854-cross-project̲redmine̲links.patch
100806-0.9.6̲add̲cross̲project̲links̲with̲changesets.patch

2024-09-09

3/3