When Should We Update the Jira API Version for Custom Plugins?

Hey guys,
Out of curiosity is there a best practice for when to update the Jira API version number in a custom plugin?

At work we’re running Jira 9.4.8 and upgrading to 9.12.1. However, our custom Jira plugins are using Jira 8.20.10 API in their pom.xml. We haven’t run into any functional issues with our plugins thus far. I only noticed issues when running SonarQube and Fortify scans on the dependencies which show the Jira 8.20.10 API is pulling a lot of old artifacts (pre 2013) and some with vulnerabilities.

Thanks for your help ahead of time.

In you case it’s best to keep API version in sync with running version of Jira.