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
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.