如何将 Web 视图添加到 Jira 仪表板
How to add a web view to Jira dashboard
我们使用 Jira.. 和许多其他人一样.. 但我们也使用一个论坛作为我们的业务讨论板,并且在 Jira 存在之前就已经存在了,所以我们在那里有很多历史信息。
可以将 "Gadgets" 添加到仪表板,但是否可以在某处添加 webview?
打开 src/main/resources/gadget.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="__MSG_gadget.title__" directory_title="__MSG_gadget.title__"
description="__MSG_gadget.description__">
<Optional feature="gadget-directory">
<Param name="categories">
JIRA
</Param>
</Optional>
<Optional feature="atlassian.util" />
<Optional feature="auth-refresh" />
<Require feature="views" />
<Require feature="settitle"/>
<Require feature="oauthpopup" />
#oauth
<Locale messages="__ATLASSIAN_BASE_URL__/download/resources/jira-gadget-tutorial-plugin/i18n/ALL_ALL.xml"/>
</ModulePrefs>
<Content type="html" view="profile">
<!-- omitted for now -->
</Content>
</Module>
你看到了吗:
<Content type="html" view="profile">
<!-- omitted for now -->
</Content>
只需在此处插入您的框架:
<Content type="html" view="profile">
<iframe src="your forum url">
</Content>
我们使用 Jira.. 和许多其他人一样.. 但我们也使用一个论坛作为我们的业务讨论板,并且在 Jira 存在之前就已经存在了,所以我们在那里有很多历史信息。
可以将 "Gadgets" 添加到仪表板,但是否可以在某处添加 webview?
打开 src/main/resources/gadget.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="__MSG_gadget.title__" directory_title="__MSG_gadget.title__"
description="__MSG_gadget.description__">
<Optional feature="gadget-directory">
<Param name="categories">
JIRA
</Param>
</Optional>
<Optional feature="atlassian.util" />
<Optional feature="auth-refresh" />
<Require feature="views" />
<Require feature="settitle"/>
<Require feature="oauthpopup" />
#oauth
<Locale messages="__ATLASSIAN_BASE_URL__/download/resources/jira-gadget-tutorial-plugin/i18n/ALL_ALL.xml"/>
</ModulePrefs>
<Content type="html" view="profile">
<!-- omitted for now -->
</Content>
</Module>
你看到了吗:
<Content type="html" view="profile">
<!-- omitted for now -->
</Content>
只需在此处插入您的框架:
<Content type="html" view="profile">
<iframe src="your forum url">
</Content>