Heads up! ScriptRunner for Bamboo documentation has moved to https://docs.adaptavist.com/sr4bam. Adaptavist will keep this site up for a bit, but no future updates to documentation will be published here. ScriptRunner 6.20.0 will be the last release to link to scriptrunner.adaptavist.com for in-app help.

The Atlassian applications are supremely flexible, but this comes at the cost of some complexity.

This built-in script allows you to hide any system web item or panel, or those that are provided by plugins.

To be more specific, it allows you to add additional conditions to these UI elements, so you can control more precisely when they are displayed.

For example:

Don’t confuse your users. If you are removing a menu item, make sure you document it and explain to your users why it’s not available.
This built-in script will only hide the web item - if your users can work out the URL that is invoked, they will be able to do the action. This is more for the purpose of reducing clutter, to allow users to focus on the most important elements in the user interface.
Don’t confuse Atlassian Support. Please don’t forget you have done this and raise a support request with Atlassian. You can see all the hidden items at Admin → Script Fragments, alternatively, disabling ScriptRunner will restore anything that it is hiding.

As always, let’s start with an example.

Hide Agents Administration Menu Item

Lets say you wish to hide the Agents Administration menu item from view.

admin menu before hide

Go to Admin → Script Fragments, and select Hide system or plugin UI element. Enter the following form details:

hide element config
Using false as your Condition will always result in the item being hidden.

The section on conditions in Web Items is relevant here too.

The following shows the menu after you save the "hide items" built-in script:

admin menu after hide

Have questions? Visit the Atlassian Community to connect, share, and learn with other Atlassian users and experts, including Adaptavist staff.

Ask a question about ScriptRunner for JIRA, Bitbucket Server, or Confluence.

Want to learn more? Check out courses on Adaptavist Learn, an online platform to onboard and train new users for Atlassian solutions.