Hi Experts,
I am trying to create a custom field in Jira, that automatically generates a unique incremental identifier every time a new story is created. The required format for this identifier is YY‑MM‑XXXX, (YY - last two digits of the year, MM - month of creation, and XXXX - sequential number).
For example, the first story created in January 2027 should have the value 27‑01‑0001, the next one 27‑01‑0002, and so on.
When the month changes, the identifier should reflect the new month, but the incremental counter should continue increasing rather than resetting; for instance, if three stories are created in February, they would be: 27‑02‑0003, 27‑02‑0004, and 27‑02‑0005.
However, when a new year begins, the counter should reset, so the first story created on January 1, 2028 will be 28‑01‑0001 and continue following the above logic.