Plugin settings limit

Hi there,

Does anybody know if there is any limit in the number of characters when storing a configuration of a plugin? I mean, we store a json file in one key like this:

String confStr = JsonHelper.serialize(configuration);
PluginSettings settings = pluginSettingsFactory.createGlobalSettings();
settings.put(CONFIGURATION_KEY, confStr);

Should I be worried by any limitation?
Is there any way that Jira limits the size of this kind of configurations by characters or size? Or is there any parameter that is found in configs that can be changed if such limitation exists?

Thanks!

Regards,
Dan

Hi Dan,
The Storage API was a limit of 128KB per value. Hopefully that is within the limits of what you are wanting to use.

Hi @Fario_Consulting :slight_smile:
Thanks for the answer. Is there any place in the docs where I can find this information?
Thanks a lot!

Later edit: I found this information but only related to Forge and I’m not really using Forge.

Hi @DanMoldoveanu,
as far as i know when it comes to storing plugin configurations in Jira, there are some limits to be aware of. While Jira doesn’t explicitly limit the number of characters for plugin settings, there are practical limits based on the underlying storage mechanism.

Key Points to Consider:

  1. Property Set Limitations: Jira uses the Property Set framework to store plugin settings. Each property has a maximum size limit, which is typically around 10 MB per property.
  2. File Size Limits: The maximum attachment size in Jira is 2 GB per file. While this isn’t directly related to plugin settings, it gives an idea of the practical limits for storing large configurations2.

Recommendations:

  • Keep Configurations Concise: Try to keep your JSON configurations as concise as possible to avoid hitting the size limits.
  • Use External Storage: For very large configurations, consider storing the data externally (e.g., in a database) and referencing it within your plugin.

Cheers,
Daniel