Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

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.


Code Block
languagebash
titleSyntax
linenumberstrue
unreleasedVersions() #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
toStringList(%{issue.versions}) any in unreleasedVersions()


This example validates that at least one affected version is unreleased.

To achieve this, the following functions are used:



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list




UI Text Box
sizemedium
typeinfo

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.


Code Block
languagebash
titleSyntax
linenumberstrue
unreleasedVersions(projects) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
titleSyntax
linenumberstrue
toStringList(^%{issue.fixVersions}) in unreleasedVersions(^%{issue.project})


This example validates that all Fix Version/s of a seed issue are unreleased. This kind of comparison is usually used in a Logical expression.

To achieve this, the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
projects

Status
subtletrue
titletext

Text including valid project keys or names in a comma-separated list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list


UI Text Box
typetip


NameStatusRelease datePosition in UI (e.g. Release Hub)

JWT 6.0 

Status
subtletrue
colourBlue
titleunreleased


#1

JWT 5.0 

Status
subtletrue
colourGreen
titlereleased

#2

JWT 3.1 

Status
subtletrue
colourGrey
titlearchived

 

#3

JWT 3.0 

Status
subtletrue
colourBlue
titleunreleased

 

#4

JWT 2.0 

Status
subtletrue
colourGreen
titlereleased

 

#5

JWT 1.0 

Status
subtletrue
colourBlue
titleunreleased


#6

The output of unreleasedVersions() will be: [JWT 1.0, JWT 6.0, JWT 3.0]. 

(warning) 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().



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_unreleasedversions" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible to access to the versions that belongs to a project, only to the versions that belongs to an issue.




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns all unreleased versions.

Output

Status
subtletrue
titletext list

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label