macro for creating links
Added by Mamado Inside over 16 years 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):
desc "CQ links, add links to CQ entries. Example \n !{{cq(dts0100503564)}}\n"
macro :cq do |obj, args|
out = ''
out << '"' + args.first + '"'
out << ":http://dtsweb.mycomp.com/cqweb/main?command=GenerateMainFrame&service=CQ&schema=dtr01&contextid=dts01&entityDefName=Defect&entityID="
out << args.first
out
end
Please tell me if I am doing something wrong, or if there is a better way to do this.
Thanks in advance,
Mamado.