macro for creating links

Added by Mamado Inside 82 days ago

Hello,

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.

"dts0100503564":http://dtsweb.mycomp.com/cqweb/main?command=GenerateMainFrame&service=CQ&schema=dtr01&contextid=dts01&entityDefName=Defect&entityID=dts0100503564
The last code I used (the most verbose):
 1     desc "CQ links, add links to CQ entries. Example \n !{{cq(dts0100503564)}}\n" 
2       macro :cq do |obj, args|
3       out = ''
4         out << '"' + args.first + '"'
5         out << ":http://dtsweb.mycomp.com/cqweb/main?command=GenerateMainFrame&service=CQ&schema=dtr01&contextid=dts01&entityDefName=Defect&entityID=" 
6         out << args.first
7         out
8       end
 

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

Thanks in advance,
Mamado.