Project

General

Profile

Actions

Patch #2053

closed

Trac: Migration of ticket:123 or [ticket:34] do not work

Added by Karl Heinz Marbaise about 16 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
Start date:
2008-10-19
Due date:
% Done:

0%

Estimated time:

Description

Things like ticket:123 or [ticket:123] or [ticket:123 this]@ are not correctly converted into Redmine. I have attached a patch to fix this.


Files

ticket.patch (890 Bytes) ticket.patch Patch based on Revision 1941 (trunk) Karl Heinz Marbaise, 2008-10-19 17:13

Related issues

Related to Redmine - Patch #2114: Fixed Bugs in Importer AreaNew

Actions
Actions #1

Updated by Karl Heinz Marbaise about 16 years ago

Hi,

the line 266 of the patch is wrong, cause it will create a wiki link instead a link to an issue.
The following part

 text = text.gsub(/\[ticket\:([^\ ]+)\ (.+?)\]/, '"\2":/issues/show/\1')

can be used instead to simulate the link to a particular issue using some different text.

Kind regards.
Karl Heinz Marbaise

Actions #2

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from New to Closed

Committed in r2012, r2013. Thanks.

Actions

Also available in: Atom PDF