I know about
import com.onresolve.scriptrunner.runner.util.OSPropertyPersister def pluginSettings = OSPropertyPersister.getPluginSettings() def key = "key" def value = "my-value" // save value against key pluginSettings.put(key, value) // retrieve value for key def savedValue = pluginSettings.get(key)
But is there any other way to store data for later use in scripts? For example suppose I have a counter which is incremented for a specific kind of issue and I want to read it later...
I presume this data you wish to store is not in context of An issue or A project, but rather for the whole instance?
In that case, have you considered adding a table tot the Jira (or other accessible) database?
From groovy you could then access this data, this KB article should help you on your way:
Let me know if this helps!
Just creating tables in the Jira DB is strongly discouraged, since Jira will probably ignore these tables during upgrades etc ...
A few options:
We’re excited to introduce external collaboration for Confluence, now available in early access. It is available to preview for Confluence Cloud Premium and Enterprise customers. (If you're not on ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events