How to open jira attachments in a new tab?

Stefano Ortelli November 27, 2014

Is there a way to configure JIRA to open always the attachments in a new tab (target=blank)?

2 answers

0 votes
Stefano Ortelli November 27, 2014

Thanks interesting, although doesn't work with ajax, this means in the rapid board. You can use the DOMNodeInserted event, but most probably doesn't work in IE.

AJS.$(document).on("DOMNodeInserted",function(e) {
  AJS.$('a[href^="/secure/attachment"]',e.target).each(function(){
    AJS.$(this).attr({target: "_blank"});
  })
});
0 votes
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 27, 2014

refer my blog mizan1.wordpress.com.. Have done something similar using javascript

Suggest an answer

Log in or Sign up to answer