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

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

Add separator in Menu for JIRA plugin

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

<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

any one???

Suggest an answer

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

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

681 views 7 23
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