Forums

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

How to make a link in a Scriptrunner web item open in a new tab or window?

Ashley Honeycutt
Contributor
April 2, 2025

Using Scriptrunner, I added a button that shows up in a particular project. The button opens a link to documentation relevant to that project. Currently, this opens in the same window.

I would prefer this open in a new tab so the user doesn't lose progress if they had started filling out issue details or a comment. If a new tab doesn't work, a new window would be fine as well.

I tried a few different things, but can't get there. Any tips are greatly appreciated!

Thank you

1 answer

0 votes
Florian Bonniec
Community Champion
April 2, 2025

Hi @Ashley Honeycutt 

 

If you are using a <a href="LINK" target="_blank">Link text</a>, target is use to open new tab.

 

Regards

Ashley Honeycutt
Contributor
April 2, 2025

Hi @Florian Bonniec ! 

I tried that with no luck, unfortunately.

For context, this is the documentation I'm referencing: https://docs.adaptavist.com/sr4js/9.6.0/features/fragments/web-item

The Link and Menu text fields do not respond to adding html.

Florian Bonniec
Community Champion
April 2, 2025

Based on previous community answer, it do not seems to be possible. There is a workaround provided by atlassian.

How to force links to open in a new window | Confluence | Atlassian Support

 

Solved: Open link in a new tab using Raw XML Module or Cus...

 

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events