The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events