You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

This function returns a text list with all released version names of the current issue's project. This can also be an archived version!

The output will be ordered by release date in ascending order, and by sequence (i.e., as shown in UI) in ascending order.

Syntax
releasedVersions() #Output: Text list
Examples

See the table blow:

NameStatusRelease datePosition 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 

ARCHIVED


#6

The output of releasedVersions() will be: [JWT 2.0, JWT 5.0]

Parser expressionDescription
Syntax
toStringList(%{issue.fixVersions} in releasedVersions()

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

To achieve this, the following functions are used:

Output

This function returns a TEXT LIST


Variant where you additionally define multiple projects.


Syntax
releasedVersions(projects) #Output: Text list
Examples
Parser expressionDescription
Syntax
toStringList(^%{issue.fixVersions}) in releasedVersions(^%{issue.project})

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

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
projects

TEXT

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

This function returns a TEXT LIST