60731

How to add a “webwork1” action linked to a “project admin tab” in Jira?

Question:

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".

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>

Answer1:

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>

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

Recommend

  • Does Hibernare Envers support model classes that use mappings?
  • cassandra 2.0.4 Unable to initialize MemoryMeter
  • Weird colored terminal response by git [duplicate]
  • Jenkins and SSL certificates
  • How do you post a comment to Atlassian confluence using their REST api?
  • Getting a blank file when accessing JIRA on SSL
  • AS2 .swf loadmovie() and unloadmovie() fail when nested inside an AS3 .swf container
  • Use MongoDB array as stack
  • Eclipse > Javascript > Code highlighting not working with Object Notation
  • UWP - Show textbox text highlight while textbox is out of focus
  • Samsung Galaxy Tab 10.1 and -webkit-tap-highlight-color style?
  • How to prompt user that edits have been made upon changing pages or sorting in Kendo Grid
  • How to distribute an event to all nodes in a (Wildfly) cluster?
  • python: forcing relative imports to search from script file
  • IE6 changes DOCTYPE to a bad one
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Iron Router: How do I send data to the layout?
  • Does Apportable support to build library binary (.a/.so)?
  • How to generate and display a QR Code in ionic 2
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • wxPython: displaying multiple widgets in same frame
  • Play WS (2.2.1): post/put large request
  • Android full screen on only one activity?
  • Switching to Release Build causes runtime error in Web Reference
  • Highlight one bar in a series in highcharts?
  • R - Combining Columns to String Based on Logical Match
  • Deserializing XML into class C#
  • jQuery tmpl and DataLink beta
  • QuartzCore.framework for Mono Develop
  • Is there a mandatory requirement to switch app.yaml?
  • SQL merge duplicate rows and join values that are different
  • Proper way to use connect-multiparty with express.js?
  • How to set the response of a form post action to a iframe source?
  • embed rChart in Markdown
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Unable to use reactive element in my shiny app
  • java string with new operator and a literal