Add separator in Menu for JIRA plugin

Chau September 25, 2018

We follow Atlassian Doc to create Menu plugin: 

https://developer.atlassian.com/server/jira/platform/adding-menu-items-to-jira/

However, it doesn't show how to make separator for each section. 

After good search around, it doesn't seem to be obvious. Can someone show us a way?

These are my current "web-section":

<web-resource key="rfc-menu-items-resources" name="rfc-menu-items Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>

<resource type="download" name="rfc-menu-items.css" location="/css/rfc-menu-items.css"/>
<resource type="download" name="rfc-menu-items.js" location="/js/rfc-menu-items.js"/>
<resource type="download" name="images/" location="/images"/>

<context>rfc-menu-items</context>
</web-resource>

<!-- release change management menu -->
<web-section name="RFC Links Main Section" i18n-name-key="my-links-main-section.name" key="rfc_links_section"
location="rfc_menu_links" weight="2"/>
<web-item key="rfc_menu_links" name="Link on My Links Main Section" section="system.top.navigation.bar" weight="1">
<label>Change Management</label>
<link linkId="rfc_menu_links">/secure/Dashboard.jspa?selectPageId=11406</link>
</web-item>
<web-item key="DOR_calendar_website_link" name="DOR Calendar" section="rfc_menu_links/rfc_links_section" weight="10">
<label>DOR Calendar</label>
<link linkId="DOR_calendar_website_link">/secure/Dashboard.jspa?selectPageId=11406</link>
</web-item>
<web-item key="RCR_website_link" name="Release Change Request" section="rfc_menu_links/rfc_links_section" weight="10">
<label>Release Change Request</label>
<link linkId="RCR_website_link">/projects/RCR/issues</link>
</web-item>

 

 

 

2 answers

0 votes
George Mihailoff April 29, 2020
<web-item key="myMenuItemBeforeTheLine" ... location="YOUR_ORIGINAL_MENU_LOCATION">   ... menu option goes here ...</web-item>

<web-section key="NEW_SECTION" ... location="YOUR_ORIGINAL_MENU_LOCATION">   ...</web-section>

<web-item key="myMenuItemAfterTheLine" ... location="YOUR_ORIGINAL_MENU_LOCATION/NEW_SECTION">   ... menu options goes here ...</web-item>

https://stackoverflow.com/questions/24192144/jira-how-to-add-a-separator-to-a-menu-plugin-between-two-links

0 votes
Chau November 15, 2018

any one???

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events