This function returns a text list with all unreleased version names of the current issue's project.
The output will be ordered by release date in ascending order, and by sequence (i.e., as shown in UI) in ascending order.
unreleasedVersions() #Output: Text list
Variant where you additionally define multiple projects.
Returned versions may either be released or unreleased. Project keys or project names may be entered as a comma-separated list.
unreleasedVersions(projects) #Output: Text list
Name | Status | Release date | Position in UI (e.g. Release Hub) |
---|---|---|---|
JWT 6.0 | UNRELEASED | #1 | |
JWT 5.0 | RELEASED | #2 | |
JWT 3.1 | ARCHIVED |
| #3 |
JWT 3.0 | UNRELEASED |
| #4 |
JWT 2.0 | RELEASED |
| #5 |
JWT 1.0 | UNRELEASED | #6 |
The output of un
releasedVersions()
will be: [JWT 1.0, JWT 6.0, JWT 3.0].
JWT 6.0 will come before JWT 3.0 since it does not have a release date set. If you want to sort by how the versions appear in the UI please use unreleasedVersionsBySequence().
Use cases and examples
Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
---|---|---|---|---|---|
Set fix version based on its start and release date | toString() textOnStringList() unreleasedVersions() startDates() releaseDates() first() |