How to detect a server is a Jira Software/ a Jira Service Desk,...?

Hi hi,

I build a plugin with Jira Core => the plugin will support Jira Core, Jira Software, Jira Service Desk.
We want to add a new feature. The new feature related to Jira software.
But we want the plugin still support Jira Core and Jira Service Desk also.

So Is there any way to detect a server is a Jira Software / Jira Service Desk inside the plugin?

Thank you so much,

Hi,

  • for Jira software applicationManager.getApplication("jira-software");
  • for Service desk applicationManager.getApplication("jira-servicedesk");

If the result is empty then the corresponding app is not installed.

Cheers

Thank you @dusan.spaic :wink: