本文介绍了如何添加"webwork1"链接到“项目管理标签"的操作;在吉拉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个网络项目和一个网络动作.我的Web项目在项目的管理"部分中显示一个新选项卡.选项卡的链接指向我的操作.

I created a web-item and a webwork action. My web-item displays a new tab in the administration section of projects. The link of the tab points to my actions.

唯一的问题是我的网络操作完全显示在另一个页面中.我希望我的自定义项目标签保持突出显示,并且我的网络操作表单将显示在我的项目框架"中.

The only problem is that my webwork action is displayed completely in another page. I would like my custom project tab to stay highlighted and my webwork action form to be displayed inside my projects "frame".

这是我的atlassian-plugin.xml:

Here's my atlassian-plugin.xml :

  <web-item name="info - Project Information" i18n-name-key="info-jira-module.name" key="info-jira-module" section="atl.jira.proj.config/projectgroup1" weight="1000">
    <description key="info-jira-module.description">The info Jira Module Plugin</description>
    <label key="info-jira-module.label"/>
    <link linkId="info-jira-module-link">/secure/MyActionClass.jspa?projectId=${project.id}</link>
  </web-item>

  <webwork1 key="info-project-webwork" name="info Project Webwork" i18n-name-key="info-project-webwork.name">
    <description key="info-project-webwork.description">The info Project Webwork Plugin</description>
    <actions>
      <action name="ca.info.jira.jira.webwork.MyActionClass" alias="MyActionClass">
        <view name="success">/templates/templates/info-project-webwork/myactionclass/success.vm</view>
      </action>
    </actions>
  </webwork1>

推荐答案

您需要为您的网络项目添加一个网络部分:

You need to add a web-section for your web-item:

<!-- A new Plugins section in the Admin menu -->
<web-section key="info-jira-section"
         name="info - Project Information Section"
         location="admin_plugins_menu"
         weight="110">
  <label key="info-jira-section.name"/>
</web-section>

<!-- A item in the Plugins section -->
<web-item name="info - Project Information" i18n-name-key="info-jira-module.name" key="info-jira-module" section="admin_plugins_menu/info-jira-section" weight="10">
    <description key="info-jira-module.description">The info Jira Module Plugin</description>
    <label key="info-jira-module.label"/>
    <link linkId="info-jira-module-link">/secure/MyActionClass.jspa?projectId=${project.id}</link>

而且我记得,所有的网络项目都是servlet.并确保您的project.id在模板中可用.

And as I recall, all the web-items are servlets. And be sure your project.id is available in your template.

这篇关于如何添加"webwork1"链接到“项目管理标签"的操作;在吉拉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 20:54