JIRA Project Tab Panel Query String Issue

When you go to the Project Tab Panels and click the 'Summary',
the URL below is requested.

http://localhost:8080/browse/LUM#selectedTab=com.atlassian.jira.plugin.system.project%3Asummary-panel

But the '#' must be '?' because HTTP Request Query String begins with '?'.

Due to this problem, a JIRA plugin does not work correctly when it uses a web-resource defined in the atlassian-plugin.xml.

When the line below is described in the velocity, the 'test-resource' is not loaded in the web page.

$webResourceManager.requireResource("[Plugin Key]:test-resources")

When the project tab is clicked twice, the query string begins with '?' and the web resource is correctly loaded.

I want to know how to workaround this issue.

1 answer

1 accepted

This widget could not be displayed.
Penny Wyatt Atlassian Team Apr 21, 2013

Hi Akira,

This behaviour is by design - the selected tab is specified in a URL fragment because it is rendered client-side, not server-side. This makes it much faster to switch between tabs on the project page, as only the content of the tab needs to be reloaded, not the whole page.

As with custom field resources, this means there is no opportunity for the server to provide the required resources for the tab being switched to. The solution for plugin developers is the same as for custom fields, and is documented here - https://developer.atlassian.com/display/JIRADEV/Custom+Fields+that+use+CSS+or+JavaScript+Web+Resources+in+JIRA+5.0

For custom fields, we recommended putting resources in "atl.general", because the "Create Issue" dialog can appear on any screen in JIRA. In your case, I think you should be able to just include your script in the "jira.browse.project" context - but try it out, as I'm not 100% certain it will include it on every tab of that page too.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

232 views 3 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you