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 }}
Thanks, it works!
It looks like you're new here. Sign in or register to get started.