Web-Item is not highlighted when selected

Hi community,

I have a Jira Plugin which has a configuration form linked by a web-item. The link shows up and works in the admin-menu, however it is not highlighted as selected when I click on it. This is my full “atlassian-plugin.xml”:

<atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugins-version="2">
    <plugin-info>
        <description>${project.description}</description>
        <version>${project.version}</version>
        <vendor name="${project.organization.name}" url="${project.organization.url}" />
        <param name="plugin-icon">de/twt/atlassian/jira/gcs/indexing/images/pluginIcon.png</param>
        <param name="plugin-logo">de/twt/atlassian/jira/gcs/indexing/images/pluginLogo.png</param>
        <param name="configure.url">/secure/twt-gcs-indexing.jspa</param>
    </plugin-info>

    <resource type="i18n" name="i18n" location="twt-gcs-indexing"/>

    <web-section key="twt-gcs-indexing-section"
                 location="admin_plugins_menu"
                 weight="110"
                 application="jira">
        <label key="twt-gcs-indexing.admin.section.label"/>
    </web-section>

    <web-item key="twt-gcs-indexing-webitem-administration"
              section="admin_plugins_menu/twt-gcs-indexing-section"
              weight="10">
        <label key="twt-gcs-indexing.admin.label"/>
        <link>/secure/twt-gcs-indexing.jspa</link>
    </web-item>

    <webwork1 key="twt-gcs-indexing-actions" name="TWT GCS Indexing Actions" class="java.lang.Object" roles-required="admin">
        <actions>
            <action name="de.twt.atlassian.jira.gcs.indexing.administration.action.IndexingDefaultAction" alias="twt-gcs-indexing">
                <view name="edit">/de/twt/atlassian/jira/gcs/indexing/templates/config.edit.vm</view>
                <view name="view">/de/twt/atlassian/jira/gcs/indexing/templates/config.view.vm</view>
            </action>
        </actions>
    </webwork1>

</atlassian-plugin>

Any idea on what I am missing?

Best regards

1 Like

This example is from Bitbucket specifically. Documented here: https://developer.atlassian.com/server/bitbucket/reference/plugin-decorators/

Missing a meta attribute in template.
<meta name="activeTab" content="pull-request-actions-repo-manage-item"/>

Matches Web-Item key attribute value.

    <web-item key="${project.artifactId}-repo-manage-item" name="Repository Admin Web Item Plugin Module"
              section="bitbucket.repository.settings.panel/repository-settings-addons-section" weight="109">
        <label>My Label</label>
        <link linkId='${project.artifactId}_manage_link'>
            /plugins/servlet/${project.artifactId}/projects/${repository.project.key}/repos/${repository.slug}/configuration
        </link>
    </web-item>
1 Like