Trac Bookmarklet: load ticket number easily

This post is more than 18 months old. Since technology changes to rapidly, this content may be out of date (but that's not always the case). Please remember to verify any technical or programming information with the current release.

While communicating with other coworkers, they generally just give me a trac ticket # and not the full URL. And, as a lazy programmer, I hate typing in the full URL or loading up trac and searching the #. So, I generated this bookmarklet. Replace the url with the root path to your trac instance. Finally, create a bookmark and put the following content in it:

javascript:var url='';var p=prompt('Ticket #?');if(p)document.location.href=url+'/ticket/'+p;

Return to All Posts

or use RSS