Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using a plugin in Behaviour Script

Daniel Garcia July 17, 2017

I'm trying to use in a behaviour script. Normally I would do something like this

TeamManager teamManager

but in a behaviour teamManager is always null.

This questions deals with the same issue but it doesn't have a resolution


1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Daniel Garcia July 17, 2017

I figured it out. The following works


PluginAccessor pluginAccessor = ComponentAccessor.getPluginAccessor() 
Class teamManagerClass = pluginAccessor.getClassLoader().findClass("")
TeamManager teamManager = (TeamManager)ComponentAccessor.getOSGiComponentInstanceOfType(teamManagerClass)
AUG Leaders

Atlassian Community Events