http://jsfiddle.net/buDxG/
See above link for a working sample where the links inside jira-issue macro are properly having the target attribute set to _blank. However, when this is actually added to the end of the HEAD via Custom HTML, inspecting jira-issue links shows that the target is "" (no value).
Is there any way to have jira-issue links open in a new tab/window?
Confluence 5.1 with minimal customization or other plugins installed.
<!-- open external links in a new window -->
<script>
jQuery(document).ready(function() {
jQuery(".external-link").attr("target", "_blank");
jQuery(".jira-issue a").attr("target", "_blank");
});
</script>