Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we open a URL in new tab in jira.

siva
Contributor
January 16, 2019

Created a URL field BUT need the URL to be opened in new TAB.



2.(IS  there a online forum for getting groovy scripts for jira.)

3. CAN JAVA be used in jira.

2 answers

1 vote
Nic Brough -Adaptavist-
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.
January 16, 2019

Ok,

  1. Add target="_blank" as an attribute in your url.
  2. https://library.adaptavist.com
  3. How do you mean "used"?  Jira is written in Java (amongst other things).  Do you mean writing apps for it?
siva
Contributor
January 16, 2019

tried it doesnt work, in a text field or URL field,

do you have a script for creating a custom field in jira so that it has only a link that will be opened in new tab.

Nic Brough -Adaptavist-
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.
January 17, 2019

Yes, but my code includes target="_blank" as a url attribute.

What have you been putting in the url field?

siva
Contributor
January 17, 2019

https://www.atlassian.com/ 

i have tried the above url with target = "_blank"


shows that it is an invalid url,

can you give me the whole url i can copy to URL field.

Nic Brough -Adaptavist-
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.
January 17, 2019

You've not added the attribute to the url.

siva
Contributor
January 18, 2019

https://www.atlassian.com/ &target = "_blank"

so this is how it works ??

0 votes
Ismael Jimoh
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.
January 16, 2019

Hi @siva

To my knowledge this is not something you implement in JIRA and a right-click open in new tab should suffice here rather than adding a complex code behind the scene.

With regards an Online forum for groovy, I believe they have a community for scriptrunner if that is what you are referring to and the Developers of scriptrunner are very active here as well. 

Can Java been used in JIRA?

JIRA is based on JAVA however if you mean direct injection of Java to JIRA then the closest you get is groovy via Scriptrunner and other add-ons that allow scripting. Direct usage of JAVA code is something I am unaware of.

Anyone with some more insight can help chip in on this ticket as well.

Suggest an answer

Log in or Sign up to answer