Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Teams
, (opens new window)

Power Scripts for Jira Cloud
Results will update as you type.
  • Get started
  • Configuration guides
  • Integration guides
  • Feature guides
  • Advanced features
  • Migration resources
  • Simple Issue Language
    • Getting started with SIL
    • SIL reference guide
    • SIL Functions library
      • Function Index
      • Packages
      • Array Functions
      • Basic Functions
      • Date and Interval Functions
      • Excel Functions
      • File Manipulation Functions
      • HTTP Functions
      • Incoming Mail Processing Functions
      • Integration with Other Systems
      • Jira Administration Functions
      • Jira Integration Functions
      • Jira Service Management Functions
      • Jira Software Functions
      • Listener Functions
        • getAllEvents
        • getAttachmentFromEvent
        • getBoardFromEvent
        • getEventClassName
        • getEventIssueChanges
        • getEventIssueFieldChange
        • getEventName
        • getFilterFromEvent
        • getIssueLinkFromEvent
        • getProjectFromEvent
        • getSprintFromEvent
        • getUserFromEvent
        • getVersionFromEvent
        • isIssueFieldChanged
      • Math Functions
      • Parameter Functions
      • Scheduling Functions
      • String Functions
      • System Integration
      • Webhooks Functions
  • Tutorials and recipes
  • Jira Product Discovery support
  • Release notes
  • Help and support
    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    getVersionFromEvent
    Updated Nov 19, 2024

    getVersionFromEvent

    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

    • Page:
      getAttachmentFromEvent
    • Page:
      getWorklogFromEvent
    • Page:
      getBoardFromEvent
    • Page:
      getSprintFromEvent
    • Page:
      getEventClassName
    • Page:
      getEventIssueFieldChange
    • Page:
      isIssueFieldChanged
    • Page:
      getIssueLinkFromEvent
    • Page:
      getEventIssueChanges
    • Page:
      getUserFromEvent
    • Page:
      getProjectFromEvent
    • Page:
      getVersionFromEvent
    Peacock

    Need support? Create a request with our support team.

    Copyright © 2005 - 2025 Appfire | All rights reserved.

    {"serverDuration": 15, "requestCorrelationId": "9d78bc1db6b747299b3b5af8379efc2f"}