Jira服务器插件 - 动态设置页面标题(浏览器)

问题描述 投票:1回答:1

我想动态设置页面标题(在浏览器选项卡中)。

这在JIRA服务器插件中成功实现,但在JIRA云插件中没有。请参考以下代码:

Jira Cloud Balucin:

"generalPages": [{
    "url": "/my-general-page",
    "name": {
        "value": "Hello World"
    },
    "key": "my-general-page"
}]

输出:

enter image description here

JIRA服务器插件:

<webwork1 key="mygeneralpage" name="My General Page" class="java.lang.Object" i18n-name-key="test-mymodule.name">
    <description key="test-mymodule.description">My General Page</description>
    <actions>
        <action name="com.atlassian.myplugin.action.myAction" alias="MyPage">
            <view name="createuserissue">/UI/my-page.vm</view>
        </action>
    </actions>
</webwork1>

输出:

enter image description here

请指导我缺少的东西。

jira jira-plugin
1个回答
0
投票

在JIRA Server中,您可以在UI/my-page.vm中设置页面标题。例如:

<html>
    <head>
        <title>My Title Goes Here</title>
    </head>
    <body>
        [...]
    </body>
</html>
© www.soinside.com 2019 - 2024. All rights reserved.