Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getVersionFromEvent() | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Retrieves a structure containing information about a version that has been archived, created, released, unarchived, unreleased, moved or merged. |
Retrieves a structure containing information about a version that has been archived, created, released, unarchived, unreleased, moved or merged.
Due to some differences between Jira's server REST API and the REST API from cloud, this routine will work slightly different here than it does on server. This happens because, in case of a version updated event, we cannot retrieve both of the information of the given version, before and after the changes being made.
The routine is a combination of the server routines for the version events (getVersionFromEvent / getOldVersionFromEvent).
Return Type
JVersion
Example
Code Block |
---|
|
logPrint("INFO", "Result of listener: " + getVersionFromEvent()); |
The result is a structure containing version id, name, description, project key of the version, start date and release dates, and information about whether the version is archieved or released.
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "listener_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|