I'm trying to use com.tempoplugin.team.api.TeamManager in a behaviour script. Normally I would do something like this
but in a behaviour teamManager is always null.
This questions deals with the same issue but it doesn't have a resolution https://community.atlassian.com/t5/Atlassian-Marketplace-questions/Use-my-own-plugin-in-Behaviours-REST/qaq-p/214545
I figured it out. The following works
PluginAccessor pluginAccessor = ComponentAccessor.getPluginAccessor()
Class teamManagerClass = pluginAccessor.getClassLoader().findClass("com.tempoplugin.team.api.TeamManager")
TeamManager teamManager = (TeamManager)ComponentAccessor.getOSGiComponentInstanceOfType(teamManagerClass)
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs