macro for creating links

Added by Mamado Inside about 14 years ago


I would like to create a macro to create links from Redmine to the legacy ClearQuest system that we have at our company.

I tried many ways, but at the end I see the correct text expanded in the issue description but it is not converted to link.


The last code I used (the most verbose):

     desc "CQ links, add links to CQ entries. Example \n !{{cq(dts0100503564)}}\n" 
      macro :cq do |obj, args|
      out = ''
        out << '"' + args.first + '"'
        out << ":" 
        out << args.first

Please tell me if I am doing something wrong, or if there is a better way to do this.

Thanks in advance,