Patch #2053

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

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

Status:ClosedStart date:2008-10-19
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Importers
Target version:0.8

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.

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


Related issues

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

Associated revisions

Revision 2012
Added by Jean-Philippe Lang almost 9 years ago

Fixed: Trac migration of ticket:123 or [ticket:34] do not work (#2053).

Revision 2013
Added by Jean-Philippe Lang almost 9 years ago

Fixed: Trac migration of ticket:123 or [ticket:34] do not work (#2053).

History

#1 Updated by Karl Heinz Marbaise about 9 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

#2 Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from New to Closed

Committed in r2012, r2013. Thanks.

Also available in: Atom PDF