Link my plugin to the repository settings page

I am trying to link my servlet to the repository settings page. Right now

it links to the /account/users page. Which works well.

I cannot figure out how to link it to the repository settings page.

Has anyone done this?

Here is a snippet from my altassion-plugin.xml

<servlet name="Config Servlet Module" i18n-name-key="config-servlet.name" key="config-servlet" class="com.ca.servlet.ConfigServlet">
    <description key="config-servlet.description">The Config Servlet Plugin</description>
    <!--url-pattern>/configservlet</url-pattern-->
 <!-- <url-pattern>/account/users/*</url-pattern>  -->
  <url-pattern>*/plugins/servlet/*</url-pattern>
  </servlet>
  <client-resource key="account-soy" name="Account Tab Soy Templates">
  <directory location="/templates/" />
 </client-resource>
 
  <web-item name="Configuration Tab" key="configuration-tab" section="bitbucket.repository.settings.panel/repository-settings-addons-section">
    <label key="Configuration">Configuration</label>
    <!--link linkId="configuration-tab-link">/configservlet</link-->
 <!-- <link>/plugins/servlet/account/users/admin</link>  -->
 <link>/plugins/servlet/settings/*</link>
    <tooltip key="configuration-tab.tooltip">Configuration</tooltip>
  </web-item>

I am also using a soy file, which the header info looks like,

{namespace plugin.account}
{template .accountTab}
<html>
<head>
 <!-- <meta name="decorator" content="bitbucketserver.repository.settings"> -->
    <meta name="decorator" content="bitbucket.users.account">
    <meta name="userSlug" content="{$user.slug}">
    <meta name="activeTab" content="account-plugin-tab">
    <title>{$user.displayName} / Account Tab</title>

Whatever I try results in a 404 error.

Can anyone give me some examples of a servlet that works?

Thanks

 

 

 

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

635 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot