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.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.