Jira drop down in top header navigation bar is not working in my custom jsp's

Hi All,

I have added few jsp's in my own plugin, where JIRA dropdown in the top navigation bar (which shows Dashboard, Projetcs, Issues, Agile, so on) is not working.

Any idea how can I figure out what might be the root cause.

I am trying in 'web console' to figure what might be the error, but as of now no luck.

Could any one point me how could I debug this.

Thanks,

Vinutha

5 answers

Hi,

Can you post your atlassian-plugin.xml.

<web-item key="view_ipprojectcreation1" name="View IP Project Creation Link" section="browse_link/project_new"

i18n-name-key="Create IP Project" weight="10">

<label key="Create IP Project"/>

<tooltip key="Create IP Project"/>

<link linkId="view_ipprojectcreation1">/secure/admin/AddIpProject!default.jspa</link>

</web-item>

<web-item key="view_siliconprojectcreation1" name="View Silicon Project Creation Link" section="browse_link/project_new"

i18n-name-key="Create Silicon Project" weight="10">

<label key="Create Silicon Project"/>

<tooltip key="Create Silicon Project"/>

<link linkId="view_siliconprojectcreation1">/secure/admin/AddSiliconProject!default.jspa</link>

</web-item>

<web-item key="view_devlopmentteamprojectcreation1" name="View Development Team Project Creation Link" section="browse_link/project_new"

i18n-name-key="Create Development Team Project" weight="10">

<label key="Create Development Team Project"/>

<tooltip key="Create Development Team Project"/>

<link linkId="view_devlopmentteamprojectcreation1">/secure/admin/AddDevelopmentTeamProject!default.jspa</link>

</web-item>

<web-item key="view_ip_project_versions" name="Ip Versions Tab" section="atl.jira.proj.config/projectgroup3" i18n-name-key="admin.project.com.atlassian.jira.projectconfig.tab.ipversions" weight="10">

<label key="Add Versions" />

<link linkId="view_ip_project_versions">/secure/project/views/ManageIpVersions!default.jspa?projectKey=$projectKeyEncoded</link>

</web-item>

</atlassian-plugin>

Hi zezeto,

Please find my atlassian-plugin.xml file below,

<atlassian-plugin key="version.management.plugin" name="Version Management Plugin" plugins-version="2">

<plugin-info>

<description>${project.description}</description>

<version>${project.version}</version>

<vendor name="Microchip Technology" url="${project.organization.url}" />

<param name="plugin-icon">images/pluginIcon.png</param>

<param name="plugin-logo">images/pluginLogo.png</param>

</plugin-info>

<web-resource key="hideVersionCreationForm" name="HideVersionCreationForm" >

<resource type="download" name="hideVersionCreationForm.js" location="js/hideVersionCreationForm.js" />

<context>atl.admin</context>

</web-resource>

<!-- add our i18n resource -->

<resource type="i18n" name="i18n" location="version-management-utility-plugin"/>

<webwork1 key="ip.version.management.webwork" name="IP Version Management Webwork Module">

<actions>

<action name="com.microchip.jira.plugins.versionManagement.action.ManageIpVersions" alias="ManageIpVersions">

<view name="success">/includes/versions/manageipversions.jsp</view>

<view name="securitybreach">/secure/views/securitybreach.jsp</view>

</action>

<action name="com.microchip.jira.plugins.versionManagement.action.AddIpVersions" alias="AddIpVersions">

<view name="success">/includes/versions/manageipversions.jsp</view>

<view name="error">/includes/versions/manageipversions.jsp</view>

<view name="complete">/includes/versions/manageipversions.jsp</view>

</action>

<action name="com.microchip.jira.plugins.versionManagement.action.AddNormalVersions" alias="AddNormalVersions">

<view name="success">/includes/versions/manageipversions.jsp</view>

<view name="error">/includes/versions/manageipversions.jsp</view>

<view name="complete">/includes/versions/manageipversions.jsp</view>

</action>

<action name="com.microchip.jira.plugins.versionManagement.action.AddIpProject" alias="AddIpProject">

<view name="success">/secure/admin/views/addipproject.jsp</view>

<view name="error">/secure/admin/views/addipproject.jsp</view>

</action>

<action name="com.microchip.jira.plugins.versionManagement.action.AddSiliconProject" alias="AddSiliconProject">

<view name="success">/secure/admin/views/addsiliconproject.jsp</view>

<view name="error">/secure/admin/views/addsiliconproject.jsp</view>

</action>

<action name="com.microchip.jira.plugins.versionManagement.action.AddDevelopmentTeamProject" alias="AddDevelopmentTeamProject">

<view name="success">/secure/admin/views/adddevelopmentproject.jsp</view>

<view name="error">/secure/admin/views/adddevelopmentproject.jsp</view>

</action>

</actions>

</webwork1>

Hi

I think that you have omitted the web section

try this code

&lt;web-item key="view_item_menu" name="view item menu" section="system.top.navigation.bar" weight="150"&gt;
		&lt;label key="lab1"&gt;Menu item&lt;/label&gt;
		&lt;tooltip key="tool1"&gt;Menu item&lt;/tooltip&gt;
		&lt;link linkId="linked1"&gt;Linked&lt;/link&gt;
		&lt;condition class="com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition" /&gt;
	&lt;/web-item&gt;
&lt;web-section key="view_item-section" name="view item Section" location="view_item_menu" weight="200"&gt;
	&lt;label key="lab2"&gt;label2&lt;/label&gt;
&lt;/web-section&gt;

Hi,

above peice of code is adding additional tab in the "system top navigation bar".

But i dont want an additional tab. My problem is, what ever the jira standard tab which are there in 'system top navigation bar' like Dashboard, Projetcs, Issues, Agile, so on in that drop down is not working. I could see all the tab but clicking on the drop down nothing is happening.

Thanks,

Vinutha

Hi,

All js files are loaded and there is not an javascript error .

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,811 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot