In jira how open weblink in a new tab or new window automatically.

Naveen Kumar D P October 12, 2017

Hi Guys,

Whenever we add a weblink to the jira issue and clicked in the view screen of the issue, it is opened in the current window 

But  required is when we  click, the web link should be opened in new tab or new window .

 

Thanks

Naveen

4 answers

0 votes
Assia Touati April 8, 2020

where do we add the script please ? i'm having the same problem

0 votes
Adrian Vital January 17, 2019

try this: 

<a target="_blank" rel="noopener noreferrer" href="url">Text_to_Display_to_Users</a>      

0 votes
Philemon Nkafu July 30, 2018

Naveen,

I tried the exact query in the announcement banner and it not work. Can you confirm that it is still working at your end?

Keri
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2018

Hi Philemon, 

 

You'll need to make sure you have the script tags in there too: 

<script>
jQuery(document).ready(function() {
jQuery(".external-link").attr("target", "_blank");});
</script>

 Does this work for you?


Cheers,

Keri

Nicolai September 16, 2020

@Naveen Kumar D P  & @Keri
Thanks a lot for your suggestions, its much appreciated as it would be a feature that would optimise all our team members work flow :D !!

Can u tell me where I should insert the code?
Honestly I got no knowledge of where I can find a place within Jira where its possible to insert any code, so your help would be much appreciated.

All the Best

0 votes
josh
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.
October 12, 2017

Do CTRL+Click (windows)

command+click mac.

Naveen Kumar D P October 12, 2017

Josh,

This is manually we are opening in new tab

Am asking automatically when clicks the link in jira it can open in new tab currently it is opening in the same  tab.

josh
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.
October 13, 2017

I understood, but there's no way to change this.

Naveen Kumar D P October 16, 2017

Hello Josh,

It is possible we have  to add the Jquery to announcement banner

i added the following query

and am able to get the weblink  in a new window.

jQuery(document).ready(function() {
jQuery(".link-title").attr("target", "_blank");

 

Thanks

Naveen

Suggest an answer

Log in or Sign up to answer