public class

AllReleasedVersionsFunction

extends AbstractVersionsFunction
java.lang.Object
   ↳ com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
     ↳ com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
       ↳ com.atlassian.jira.plugin.jql.function.AllReleasedVersionsFunction

Class Overview

Function that produces released versions for any specified projects (or all released versions if no project is specified). The versions returned will include both archived and unarchived versions.

Projects are resolved by project key first, then name, then id. Only Versions from Projects which the current user can browse will be returned.

Summary

Constants
String FUNCTION_RELEASED_VERSIONS
[Expand]
Inherited Fields
From class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
Public Constructors
AllReleasedVersionsFunction(VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)
Protected Methods
Collection<Version> getAllVersions(User user)
Collection<Version> getVersionsForProject(Long projectId)
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.jql.function.AbstractVersionsFunction
From class com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
From class java.lang.Object
From interface com.atlassian.jira.plugin.jql.function.ClauseSanitisingJqlFunction
From interface com.atlassian.jira.plugin.jql.function.JqlFunction

Constants

public static final String FUNCTION_RELEASED_VERSIONS

Constant Value: "releasedVersions"

Public Constructors

public AllReleasedVersionsFunction (VersionManager versionManager, ProjectResolver projectResolver, PermissionManager permissionManager)

Protected Methods

protected Collection<Version> getAllVersions (User user)

Returns
  • all the versions relevant to this function.

protected Collection<Version> getVersionsForProject (Long projectId)

Parameters
projectId the id of the Project which the versions belong to
Returns
  • all the versions relevant to this function and the specified project