Sorry, the description of our current state and where I've got to is necessarily long...
We have multiple streams of delivery in our project. The small team delivers a number of distinct apps.
We currently set up a generic version per app in advance, then give them a version number when it's time to release one of the apps. We also use a status called "Ready for Prod" to collect tasks that are ready to release, as the last step in the workflow before Done.
At any given time we should have several "next versions" available (e.g. Calculator NextVer, Timesheet NextVer, DocFlow NextVer). As one becomes ready to release we replace NextVer with the version number (e.g. Timesheet 2.65.1927), then release the version in Jira.
We also use Components, and some of the components are a 1:1 match with the apps.
When we hit Release in Jira I have two automations run
- Transition all tasks in that version to Done
- Create a new empty NextVer version
What I'd like to do is have automation that sets the appropriate NextVer when the task transitions to "Ready for Prod" based on the Component field.
The automation step Create Version allows me to set the version number using regex - {{version.name.replaceAll("[.-9]+$|v[.-9]+$","NextVer")}}
However, the only way I see to set a version for an issue is to use the Edit Issue step and that only allows me to select from existing released versions. While this seems to remember the name not the DB ID for the release, I'm wondering if there's a more fool-proof way.
Q: Is there a way to set a version in automation using criteria based on part of the target version's name (e.g. regex or wildcard). Any ideas?