Bamboo plugin administration view


i have created a bamboo plugin. its a task that sends mails. Now we want to view and edit the mailserver settings in bamboo. I have added a section and a item.

When clicking on the item, the page with the information and a edit-button should appear on the rigth side. But i dont know how to do this. would it be a web-panel or a servlet? I tried both but it didn't work.

<servlet key="admin-servlet" class="com.atlassian.bamboo2.printOut.ExampleServlet">
<web-section key="mailServerConfig" name="Mailserver Configuration" location="system.admin" weight="110" application="bamboo">
        <label key="Mailserver Configuration" />
<web-item key="bamboo-menu-item" name="XProduct Admin" section="system.admin/mailServerConfig" weight="10" application="bamboo">
		<label key="XProduct Admin" />
		<link linkId="my-web-item-link">plugins/servlet/mailserver</link>


i found out that i have to use xwork modul.

<xwork key="mailServerAction" name="mailServerAction">
		<package name="mailserver" extends="default">
			<action name="mailserver" class="com.atlassian.bamboo2.printOut.MyAction">
				<result name="success" type="velocity">/templates/admin.vm</result>

But when i click the item this error occurs:

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/templates/admin.vm'
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(
	at com.opensymphony.webwork.dispatcher.VelocityResult.getTemplate(
	at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(
	at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(
	at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(
	at com.opensymphony.xwork.DefaultActionInvocation.executeResult(


- src/main/java/package/

- src/main/resources/templates/admin.vm

- src/main/resources/atlassian-plugin.xml

I've tried to change die package "extends", added a "namespace" and a lot of slashes evreywhere, but the error still occurs.

What am I missing?


a result tag type freemarker and a .ftl file opens the page.. but why?

-> because in bamboo you cannot use any vm files, rigth? -.-


2 answers



<web-section key="sectionKey" name="sectionName" location="system.admin" weight="110" application="bamboo">
	<label key="sectionLabelKey" />

<web-item key="itemKey" name="itemName" section="system.admin/sectionKey" weight="10" application="bamboo">
	<label key="itemLabelKey" />
	<link linkId="actionKey">/packageName/actionName.action</link>

<xwork key="actionKey" name="actionName">
      <package name="packageName" extends="admin">
      <action name="actionName" class="PathToActionClass" method="execute">
          <result name="success" type="freemarker">/FileName.ftl</result>

ftl file:

    [@ui.header pageKey="Header" title=true /]
    <meta name="decorator" content="adminpage">

Can you post your src/main/java/package/MyAction.js file content? That would be great! Thanks.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

365 views 0 6
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