Table of contents
Display Elements Connect public (visible) values (e.g: in another addon).
Using the service
You need to add the following package 'com.valiantys.nfeed.api' to your OSGi dependencies instruction in the pom file. Like this:
Import-Package vs. DynamicImport-Package
The package can be added in the Import-Package section instead of the DynamicImport-Package. The issue with Import-Package is that is does not detect classes after install (if Elements Connect is installed or enabled after your add-on, API classes won't be loaded)
Accessing the service
This feature is provided by the IFieldDisplayService:
OSGi Bundle - Important Note
Please note that referencing the bundle itself is not recommended, do not do this. You can get the service by its class as in the example above.
In case you still need to reference Elements Connect OSGi bundle directly by its name, it has changed as of version 5.13.22.
|5.13.22 or later||com.valiantys.jira.plugins.elements-connect|
The service above makes reference to classes provided by Elements Connect. You must make sure that Elements Connect is installed before accessing the service or even trying to reference it. This check must be done at runtime. If Elements Connect is not present and you try to use the service, your code might fail with a ClassNotFoundException.