Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有子级别的Jira下拉菜单_Jira_Jira Plugin - Fatal编程技术网

带有子级别的Jira下拉菜单

带有子级别的Jira下拉菜单,jira,jira-plugin,Jira,Jira Plugin,我试图在使用标签构建插件时实现行为,但是文档中没有任何东西可以帮助我找到合适的标签。我知道这个解决方案可以用html构建子级别,所以必须有类似的东西。有什么想法吗?谢谢 预期行为: 恐怕目前不可能做到这一点。Atlassian有意识地决定只允许将菜单项分组在部分中,而不允许在可扩展的子菜单中: atlassian_plugin.xml: <atlassian-plugin key="${atlassian.plugin.key}" name="${project.name}" plugi

我试图在使用
标签构建插件时实现行为,但是文档中没有任何东西可以帮助我找到合适的标签。我知道这个解决方案可以用html构建子级别,所以
必须有类似的东西。有什么想法吗?谢谢

预期行为:


恐怕目前不可能做到这一点。Atlassian有意识地决定只允许将菜单项分组在部分中,而不允许在可扩展的子菜单中:

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">images/pluginIcon.png</param>
        <param name="plugin-logo">images/pluginLogo.png</param>
    </plugin-info>

    <web-item key="top-menu-dropdown" section="system.top.navigation.bar" weight="100">
        <label>My custom menu</label>
        <link linkId="top-menu-dropdown-link-id"/>
    </web-item>

    <web-section key="first-section" location="top-menu-dropdown-link-id" weight="10">
        <label>First section</label>
    </web-section>

    <web-item key="first-section-first-item" section="top-menu-dropdown-link-id/first-section" weight="10">
        <label>First item</label>
        <link>https://example.com/1/1</link>
    </web-item>

    <web-item key="first-section-second-item" section="top-menu-dropdown-link-id/first-section" weight="10">
        <label>Second item</label>
        <link>https://example.com/1/2</link>
    </web-item>

    <web-section key="second-section" location="top-menu-dropdown-link-id" weight="10">
        <label>Second section</label>
    </web-section>

    <web-item key="second-section-first-item" section="top-menu-dropdown-link-id/second-section" weight="10">
        <label>First item</label>
        <link>https://example.com/2/1</link>
    </web-item>

    <web-item key="second-section-second-item" section="top-menu-dropdown-link-id/second-section" weight="10">
        <label>Second item</label>
        <link>https://example.com/2/2</link>
    </web-item>
</atlassian-plugin>

${project.description}
${project.version}
图片/pluginIcon.png
images/pluginLogo.png
我的自定义菜单
第一节
第一项
https://example.com/1/1
第二项
https://example.com/1/2
第二节
第一项
https://example.com/2/1
第二项
https://example.com/2/2

是否可以查看您的atlassian-plugin.xml?您希望此项目出现在哪个菜单上?在主菜单顶部