I am working on User Scripted macro creation in Confluence to gather information about installed apps.
The intention is to have it visible to users with some basic information like Marketplace details and License status.
I was able to gather most of the details using some PlugIn classes:
Unfortunately I am not able to obtain details about License status for App which is basically available over UPM Rest API but I don’t want to handle REST calls.
Getting licensing information about 3rd party plugins is likely viewed as privacy issue and is probably not possible.
In more technical terms, each plugin has it’s own instance of PluginLicenseManager you probably can’t get a reference to.
But I don’t want to do that.
How Jira or Confluence show when license is going to expire and validity of it using Manage App page?
It is calling some API.
REST can show that data so that mean there is an internal API to retrieve that basic information.
You can use the PluginLicenseManager interface from com.atlassian.upm.api.license for this. The interface gives you access to a trove of information with regards to the app’s licensing. For example, you can get the plugin license (if licensed) and details with something similar to this and much more: