Which dependency do I have to include to make use of com.atlassian.jira.functest.config.dashboard.ConfigGadget?

JIRA Plugin Developer July 6, 2014

Hello everybody,

I can import the package mentioned in the title, but got errors during compiling.

My Code looks like:

ConfigGadgetManager cgm = ComponentAccessor.getComponent(ConfigGadgetManager.class);
      List<ConfigGadget> gadgets = cgm.loadGadgets();

2 answers

1 accepted

1 vote
Answer accepted
tier-0 grump
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 7, 2014

You shouldn't be using that class to load gadgets - classes in the functest namespace are helper/test classes we write to make testing easier, so aren't available in general at runtime. What you probably want is the PortletConfigurationManager if you're trying to get hold of Gadgets

JIRA Plugin Developer July 7, 2014

Ok, thank you very much. That explained why I got all the compiler errors.

0 votes
JIRA Plugin Developer July 7, 2014

Ok, thank you very much. That explained we got all the compiler errors.

Suggest an answer

Log in or Sign up to answer