You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello Everyone,
I need to modify plugin in which one menu ,which is present in project settings needs to be show only when key value does not match.I wanted to hide Component Testers menu, if projectKey=demo.Kindly guide me, how to achieve this by modifying atlassian-plugin.xml file .
component.tester.nav.label=Component Testers
Please find content of atlassian plugin.xml file below-
Please find web item and webwork details below-
<web-item key="component_tester_project_config_web_item" name="Project Config Item" section="atl.jira.proj.config/projectgroup3" weight="50">
<label key="component.tester.nav.label"/>
<link linkId="component_tester_project_config_link">/secure/ComponentTesterConfig.jspa?projectKey=$projectKeyEncoded</link>
<condition class="com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition"/>
</web-item>
Webwork:-
<webwork1 key="project-config-page" class="java.lang.Object">
<actions>
<action name="org.jboss.labs.jira.plugin.cdw.gui.ComponentTesterAction" alias="ComponentTesterConfig">
<view name="success">/templates/component-tester-admin.vm</view>
<view name="permissionviolation">/templates/component-tester-admin.vm</view>
</action>
</actions>
</webwork1>