When license is invalid, settings page will not be displayed great
https://answers.atlassian.com/questions/101536/thirdpartypluginlicensestoragemanager-example-code
However, plugin has custom field modules. When license has expired, the custom field is still on the custom field list, and the custom fields added before the expiration of the lisence are usable in related screens. How can I solve it? Any ideas?
First, you should test licensing using ThirdPartyPluginLicenseStorageManager, and if the license is not valid, You should pass empty velocity parameters to your view.vm. Otherwise, You should pass your velocity parameters.
Map<String, Object> velocityParams = new HashMap<String, Object>(); if(!hasLicense()){ return velocityParams; } ... velocityParams.put("setvals", setValuesList); ...
Thank you Tuncay, I will try that.
First, you should test licensing using ThirdPartyPluginLicenseStorageManager, and if the license is not valid, You should pass empty velocity parameters. Otherwise, You should pass your velocity parameters.
It looks like you're new here. Sign in or register to get started.