Note that there are some explanatory texts on larger screens.

plurals
  1. POPutting parameters in velocity context in Jira 4.4
    primarykey
    data
    text
    <p>I'm developing a plugin to display additional information related to a project.</p> <p>So I'm developing a Project Tab Panel module but my page does not display the paramenters I put in the velocity context.</p> <p>Here is the a part of plugin xml:</p> <pre><code>&lt;project-tabpanel key="stats-tab-panel" name="Stats Tab Panel" i18n-name-key="stats-tab-panel.name" class="it.pride.jira.plugins.StatsTabPanel"&gt; &lt;description key="stats-tab-panel.description"&gt;The Stats Tab Panel Plugin&lt;/description&gt; &lt;label key="stats-tab-panel.label"&gt;&lt;/label&gt; &lt;order&gt;10&lt;/order&gt; &lt;resource type="velocity" name="view" location="templates/tabpanels/stats-tab-panel.vm"/&gt; </code></pre> <p></p> <p>Here instead the useful part of my class:</p> <pre><code>public class StatsTabPanel extends GenericProjectTabPanel { public StatsTabPanel(JiraAuthenticationContext jiraAuthenticationContext, FieldVisibilityManager fieldVisibilityManager) { super(jiraAuthenticationContext, fieldVisibilityManager); // TODO Auto-generated constructor stub } public String testvalue="112002"; @Override public boolean showPanel(BrowseContext context){ return true; } @Override public Map&lt;String, Object&gt; createVelocityParams (BrowseContext context) { Map&lt;String, Object&gt; contextMap = createVelocityParams(context); contextMap.put("testvalue", testvalue); return contextMap; } </code></pre> <p>}</p> <p>So, as in this case, when i write `$testvalue in my template the number doesn't show up.</p> <p>What am I doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload