Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Using a plugin in Behaviour Script

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

1 vote
Answer accepted

I figured it out. The following works


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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

181 views 1 6
Read article

Atlassian Community Events