New pages - position in the menu

I have a question about menus in the new pages. When I have two almost identical pages, lets say Page 1 and Page 2


Page 1

<form action="secure/admin/Action2.jspa" method="post" class="aui">
<!--some form fields-->

<button class="aui-button aui-button-primary">Goto Page2</button>

page 2

Now I am trying to create configuration pages for a plugin. So I have placed a new item into the menu and that item links to /secure/admin/Action1.jspa, which displays page1. From page1, I submit a form with /secure/admin/Action2.jspa and display page2.

The question is, even though there is no content like

<meta content="admin" name="decorator" />

on either of the pages, they each display in a different way. Page 1 is displayed in the Addons menu with the sidebar and the plugin administration link highlighted.


But, when I go to page2 from this page, the sidebar menu disappears.ScreenHunter_6.jpg

How do I get the sidebar back on page2?

1 answer

0 vote
Alexey Matveev Community Champion Nov 15, 2017


You should add <meta content="admin" name="decorator" /> to both pages

But that doesnt really help, I have other pages, where I have this line, and the sidebar still doesnt show up. Shouldnt there be a way to specify "I am currently located in the Addons menu and XXX submenu" and JIRA would automatically add the menu there?

Alexey Matveev Community Champion Nov 21, 2017

Could you add 

<meta name="" content="admin_plugins_menu/<yoursectionkey>/<yourwebitemkey>"/>

below the <meta content="admin" name="decorator" /> line.

Alexey Matveev Community Champion Nov 21, 2017

And it must be

<meta name="decorator" content="atl.admin">

not  <meta content="admin" name="decorator" />

Thank you, this is exactly what I was looking for. Is there some list of the existing locations? I have looked at this but it seems very outdated, as the structure of the admin menu is completely different now from the screenshots.

For example, if I wanted to have Issues - Custom Fields menu position?

I have tried this

<meta name="" content="admin_issues_menu/custom_fields/"/>

which gives me the Issues menu correctly, but I do not know the key for the Custom Fields link.

Alexey Matveev Community Champion Nov 22, 2017

I look at all available contexts in Adaptivist Scriptrunner. There is the fragment locator functionality which shows you all available contexts. You can read more here

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

56 views 0 2
Read article

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