Retrieve Plugin Versions Compatible with a Specific Jira Version

Hi everyone,

We are currently using this API request to retrieve versions of plugins for Jira:
https://marketplace.atlassian.com/rest/2/addons/<plugin_key>/versions?application=jira

However, the JSON response does not display the compatibility with specific Jira versions. We are looking for a way to ensure that we are using plugin versions that are compatible with our current Jira version. Our end goal is to automate the download of plugins in their latest versions compatible with our current Jira version.

Does anyone have ideas or experience on how to get these compatibility details? Is there another API endpoint or an alternative method to retrieve this information?

Thanks in advance for your help!

You’re on the right track with the Marketplace API, but unfortunately, the /versions endpoint doesn’t include compatibility details. To retrieve the Jira version compatibility, you can use the following API request:

https://marketplace.atlassian.com/rest/2/addons/<plugin_key>/versions/latest?supported=true&application=jira

This ensures you fetch only versions marked as supported for Jira. Additionally, for more granular compatibility details, you can query:

https://marketplace.atlassian.com/rest/2/addons/<plugin_key>/versions

Then, in the response, check the compatibleApplications field, which includes the supported Jira versions.

For more details, check out the official Atlassian documentation:
:small_blue_diamond: Atlassian Marketplace API Reference
:small_blue_diamond: Getting Add-on Versions

This should help you automate downloading the latest compatible versions for your Jira instance