It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Web item condition is not working Edited

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>

 

image.png

 

3 answers

1 accepted

2 votes
Answer accepted

@Tuncay Senturk -Snapbytes- & @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>

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

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

365 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you