Mine's way shorter. I assume this means that I did something wrong ;)
Update: It links any "subcase xyz" or "case xyz" in changelines. Also added hover box
name: Sub-case / parent-case changeline links
description: Linkifies "added subcase xyz" or "parent case changed from case 123 to case 567" in bugevent change-lines
author: Adam Wishneusky
version: 1.1.0.0
js:
$("div.bugevent > div.changes").each(function(index) {
$(this).html($(this).html().replace(/subcase (this).html($(this).html().replace(/((sub)?case) (\d+)/,"\d+)/ig,"<a href=\"/?$1\href=\"/?$3\" >subcase onmouseover=\"b1($3, this);\">$1 $13</a>"));
})