For my company I need to create a central ui to crud-administrate organizations and add/remove customers to/from those organizations. I started out with a webwork module.
Then I looked into the API and found the OrganizationService interface. Sounds good, I thought. But how to access that service and use it?
My first attempt looks like so:
public class OrgadmutilWebwork extends JiraWebActionSupport {
@ComponentImport
private OrganizationService organizationService;
@Inject
public OrgadmutilWebwork(OrganizationService organizationService) {
this.organizationService = organizationService;
}
public String doExecute()
{
return SUCCESS;
}
}
However, that way the plugin not even gets loaded. So how to do it correctly?