Shared Web Item

Hi folks, apologies if this has been asked and/or answered elsewhere, but I haven’t been able to find anything. I have multiple JIRA plugins that ideally I would like accessible via one drop-down menu on the nav bar. I know that in making a nav-bar web-item in one plugin I can make the other plugins use that web-item as a section/location, but that makes the other plugins reliant on that first one being installed.

Is there a way that I could have any of the plugins installed at any time using the same web-item for the drop-down? Something like each plugin will create a web-item they can all use, but only if it doesn’t already exist?

Thanks in advance for any input.

You can write a condition that uses the PluginAccessor to see if the other addons are installed https://docs.atlassian.com/atlassian-plugins-api/4.0.0-RC001/atlassian-plugins-api/apidocs/com/atlassian/plugin/PluginAccessor.html has more details.

Thank you for your answer, a custom condition is exactly the kind of thing I was looking for.