Missed Team ’24? Catch up on announcements here.

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

Setting the active tab in a Stash admin plugin

Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 31, 2013

I have a plugin with a link the atl.admin/admin-plugins-section section, but when on the admin page, the link is not set as active (bolded). How do I set the activeTab (or other metadata) so that this link shows as active when selected?

Soy Template

<head>
    	<meta name="decorator" content="atl.admin">
    	<meta name="activeTab" content="reminder-config-panel">
        <title>Pull Request Reminder Settings</title>
    </head>

atlassian-plugin.xml

<web-item name="Pull Request Reminder" key="reminder-config-panel" section="atl.admin/admin-plugins-section" weight="30">
    <description>Pull request reminder configuration.</description>
    <tooltip key="reminder-config-tooltip">Configure the pull request reminder plugin.</tooltip>
    <label key="reminder-config-label">Pull Request Reminder</label>
    <link linkId="reminder-config-link">/plugins/servlet/reminderconfig</link>
  </web-item>

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2013

Hi Jeff,

You might want to rename 'activeTab' to 'admin.active.tab':

<meta name="admin.active.tab" content="reminder-config-panel">

Cheers,

Charles

Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 31, 2013

Thank you! That did the trick. I have been searching for a while and missed the previous answer for this question.

Is there any documentation for metadata that is optional? I see documentation for Plugin Decorators, but it just listed the required values.

cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2013

Hi Jeff,

Not that I know of. I believe most of the time activeTab is what you want, except for the admin section. I'll try to update that page for the next release.

Cheers,

Charles

TAGS
AUG Leaders

Atlassian Community Events