OsgiContainerManager osgiManager = ComponentManager.getInstance().getComponentInstanceOfType(OsgiContainerManager.class)
return osgiManager.getServiceTracker("com.osoboo.jira.metadata.MetadataService").getService().getMetadataValue(issue.getProjectObject(), "crmid")
You have to use ComponentAccessor instead of ComponentManager.
like ComponentAccessor.getComponentOfType(IssueLinkTypeManager.class).getIssueLinkTypes();
As ComponentManager which was deprecated in JIRA 7. See this page for more information:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.