I am having the following web item,
<web-item name="Project Resource Web Item" i18n-name-key="project-resource-web-item" key="project-resource-web-item" section="jira.project.sidebar.plugins.navigation" weight="1000">
<description key="projectresourcewebitem.description">The project resource web item Plugin</description>
<label>Resource</label>
<param name="iconClass" value="aui-icon-large aui-iconfont-user-large"/>
<link linkId="projectresourcewebitem-link">/projects/$pathEncodedProjectKey?selectedItem=com.atlassian.jira.jira-projects-plugin:resource-page&projectKey=$pathEncodedProjectKey</link>
<condition class="x.y.z.ProjectCondition">
<param name="currentProjectKey">${project.key}</param>
</condition>
</web-item>
And my Condition class is,
...
private String jiraProjectKey;
@Override
public void init(Map<String, String> map) throws PluginParseException {
jiraProjectKey = ParameterUtils.getStringParam(map, "currentProjectKey");
}
...
I tried with static value and it works fine. I tried ${project.key},$pathEncodedProjectKey,$helper.project.key. Nothing seems working.
How can I get the current project key in condition?
My JIRA version is 7.6.0.
Community moderators have prevented the ability to post new answers.
Dear @Pradeep Panayal,
best you ask this question again on the Developer Community.
Thanks for understanding
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.