I develop jira plugin. Faced this problem: i have bool setting and i need show my web-item when this flag is switched on and doesn't show when turned off.
Mb someone know how to do it?
Thanks
Hello,
You need to add a condition into your web-item in atlassian=plugin.xml
<web-item ..
<condition class="com.mypackage.MyCondition" />
</web-item>
Here is the snippet of the condition class
public class MyCondition extends AbstractWebCondition {
@Override
public boolean shouldDisplay(ApplicationUser user, JiraHelper jiraHelper) {
return // true or false according to your bool setting
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.