Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Plugin web-item in new tab or new window

Hi there, I am newbie in atlassian development...

First of all, I tried to search and i found some topics in the comunity but the responses did not work for me.

I am developing a plugin for Jira Software Server with a top menú navigation with web-section(s) and web-item(s) and I would like to open the external links in new tabs or new windows.

I readed in the documentacion and some posts but the links always open in the same tab that jira is running.

This is part of my code...

<web-resource key="ExternalLinks-resources" name="ExternalLinks Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="ExternalLinks.css" location="/css/ExternalLinks.css"/>
<resource type="download" name="ExternalLinks.js" location="/js/ExternalLinks.js"/>
<resource type="download" name="images/" location="/images"/>
<context>ExternalLinks</context>
</web-resource>
<!-- Acces to ...-->
<web-item name="item-acceso-a" i18n-name-key="item-acceso-a.name" key="item-acceso-a" section="system.top.navigation.bar" class="arquia-menu" weight="1000">
<description key="item-acceso-a.description">Acces to...</description>
<label key="item-acceso-a.label"/>
<link linkId="item-acceso-a-link" />
</web-item>

<!-- Public ...-->
<web-section name="sectionPublic" i18n-name-key="section-public.name" key="section-public" location="item-acceso-a-link" weight="1000">
<description key="section-public.description">Public section</description>
<label key="section-public.label"/>
</web-section>
<!-- Google -->
<web-item name="Google" i18n-name-key="google.name" key="google" section="item-acceso-a-link/section-public" weight="1000">
<description key="google.description">Google</description>
<icon width="24" height="24">
<link linkId="google-icon">/icons/google.png</link>
</icon>
<label key="google.label"/>
<link linkId="google-link">https://www.google.es</link>
<param name="target" value="_blank" />
</web-item>

Thanks in advance!

1 comment

Me too looking for a solution for the same problem. Note. we use Jira licensed version. 

Thanks

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

341 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you