39 points · by jrom · 15y ago · 7 comments
Cobbled together a plugin to auto-link FOO-1234 to our JIRA installation. Plus, multi-line pasting creates an EtherPad session.
plugin.onMessageInsertion = function(talkerEvent){
$('td.message').replace(/(FOO-\d*)/gi, '<a href="https://foo.onjira.com/browse/+$1.toUpperCase()+ target="_blank">'+'$1'.toUpperCase()+'</a>');
$('span.msg').replace(/(FOO-\d*)/gi, '<a href="https://foo.onjira.com/browse/+$1.toUpperCase()+ target="_blank">'+'$1'.toUpperCase()+'</a>');
}
It's a fantastic, fantastic collab tool.