I've modified my summary field to include the project key, year, and I want a rolling counter as all issues are created.
I can't seem to find an ideal way to store a global value that all issues within my project can pull from and increment.
Essentially I want to create something similar to the list below. I could create a custom entry in a database and potentially access that field with scriptrunner, but I want to keep as much as I can within the core of scriptrunner and jira core to avoid having too much of a home rolled system.
PROJ-2019-0001...PROJ-2019-3142, PROJ-2019-3143
PROJ-2020-0001, PROJ-2020-0002...PROJ-2020-XXXX