I'm trying to add "IsAdminCondition", but my web-item is not visible for "admin" users.
<web-item name="Button" i18n-name-key="button.name" key="Button" section="system.top.navigation.bar" weight="1000">
<description key="button.description">Button</description>
<condition class="com.atlassian.jira.plugin.webfragment.conditions.IsAdminCondition"/>
<label key="Button"/>
<styleClass>call</styleClass>
<link linkId="button-link"></link>
</web-item>
@Tuncay Senturk & @Andrew Thanks for your response.
It worked after importing "com.atlassian.jira.plugin.webfragment.conditions" in pom.xml and executing "atlas-clean".
<Import-Package>com.atlassian.jira.plugin.webfragment.conditions, org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", *</Import-Package>
Hi @navya k ,
Could You please try with different
weight="1000"
E.g. 0, 10, 100... I have case when item showing only with specific weight.
B.R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @navya k
Is there anything wrong in the application logs? As far as I see your condition is OK and I believe it should work.
Anyway, alternatively try below condition
com.atlassian.jira.plugin.webfragment.conditions.UserIsAdminCondition
and if that does not work either, please see the logs, there should be something which will give us clue.
Tuncay Senturk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.