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

Vinutha Vasan March 9, 2014

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

7 answers

0 votes
Jero Dungog April 16, 2020

Note for those who are still encountering this:

The following is the root cause on my end:

A javascript error

Resolved this by opening the Console of the browser.
Checked for the logs.
Found that there was an element which was null.

This null error was preventing other scripts to run.
on of which was the js script for the dropdown.

This issue can only be caused by a Javascript error.

Please check your Browser logs (console) 

0 votes
Jero Dungog April 16, 2020

Were you able to resolve this @Vinutha Vasan ?
If yes, can you kindly share your solution?
I am currently experiencing the same issue you had stated here

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2014

Hi

I think that you have omitted the web section

try this code

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

Vinutha Vasan March 10, 2014

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

Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2014

Hi,

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

0 votes
Vinutha Vasan March 9, 2014

<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>

0 votes
Vinutha Vasan March 9, 2014

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"/>

0 votes
Vinutha Vasan March 9, 2014

<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>

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2014

Hi,

Can you post your atlassian-plugin.xml.

Suggest an answer

Log in or Sign up to answer