Skip to end of banner
Go to start of banner

getVersionFromEvent

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 8 Next »

Description

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 function 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 function is a combination of the server functions for the version events (getVersionFromEvent / getOldVersionFromEvent).

Return Type

JVersion

Example

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

There are no items with the selected labels at this time.

We've encountered an issue exporting this macro. Please try exporting this page again later.
  • No labels